MATLAB Function Reference    
namelengthmax

Return maximum identifier length

Syntax

Description

len = namelengthmax returns the maximum length allowed for MATLAB identifiers. MATLAB identifiers are

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.

Examples

Call namelengthmax to get the maximum identifier length:

See Also

isvarname


  munlock NaN