
185MATLAB
®
-Specic Techniques
Among the “standard” (nonobject-oriented) types of functions, namely regular func-
tions, subfunctions, and nested functions, I have found no discernible performance differ-
ence on recent MATLAB releases. For a discussion of object-oriented functions (methods),
se e § 4.7.3.
When specifying callbacks for asynchronous events (e.g., timer invocations or interac-
tion with GUI controls), we normally have a choice between using a string callback and
specifying a callback function handle. In general, using function handles is preferable to
strings that evaluate at run time. String used to be the only way to specify cal