| MATLAB Function Reference | ![]() |
len = namelengthmax
len = namelengthmax returns the maximum length allowed for MATLAB® identifiers. MATLAB identifiers are
Variable names
Function and subfunction names
Structure fieldnames
Object names
M-file names
MEX-file names
MDL-file names
Rather than hard-coding a specific maximum name length into your programs, use the namelengthmax function. This saves you the trouble of having to update these limits should the identifier length change in some future MATLAB release.
Call namelengthmax to get the maximum identifier length:
maxid = namelengthmax
maxid =
63
![]() | munlock | NaN | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |