Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

namelengthmax - Maximum identifier length

Syntax

len = namelengthmax

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:

maxid = namelengthmax
maxid =
    63

See Also

isvarname, genvarname

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS