User`s guide
Programming
21-23
• parfor – designates a for loop in the Distributing Computing Toolbox
• classdef – signals the beginning of a MATLAB class definition
The iskeyword function returns true for each of these functions, thus identifying them
as reserved keywords in MATLAB:
Compatibility Considerations
MATLAB keywords are reserved for use internal to MATLAB, and should not be used in
your own program code as identifiers or function names. If your code uses either of these
two new keywords in this manner, you should modify your code and use words that are
not reserved.
Enhancements to Display Generated by whos
The visual output of the information returned by whos looks slightly different in R2006b
than in previous releases. Changes are as follows:
• There is a new column in the output called Attributes that identifies values that
are sparse, complex, global, or persistent.
• The words “array” and “object” have been dropped from items under the Class
heading. Items formerly listed as double array or timer object , for example, are
now displayed as double, and timer.
• MATLAB no longer includes summary information showing the “Grand total” of
elements and bytes at the bottom of the whos output display.
• There is an additional field in the structure returned by whos. This new field is
'persistent' and is set to logical 1 for those variables that are persistent, or logical
0 otherwise.
Here is an example of the information displayed by whos in MATLAB 7.3:
whos
Name Size Bytes Class Attributes
vCell 5x7 2380 cell
vComplex 6x2 192 double complex
vDouble 6x5x9 2160 double
vFuncHdl 1x1 16 function_handle
vGlobal 0x0 0 double global
vObject 1x1 248 timer
vPersist 0x0 0 double persistent
vSparse 15x15 244 double sparse
vStruct 1x3 804 struct