
641Appendix A
ID Description Discussed In
SAGROW The variable <name> appears to change size on every loop iteration (within
a script). Consider preallocating for speed.
§2.1.2,
§9.4.3
NASGU The value assigned to variable <name> might be unused. §3.10.1.3
PSIZE numel(x) is usually faster than prod(size(x)) §4.9.14
ISMT Using isempty is usually faster than comparing length() to 0 §4.9.8
LOGL Use true or false instead of logical(1) or logical(0) §4.1.7
ST2NM str2double is faster than str2num; however, str2double operates only on
scalars. Use the function that best suits your needs.
§4.2.3
EXIST exist with two input arguments is generally faster and clearer ...