Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

namelengthmax

Maximum identifier length

Syntax

Description

example

l = namelengthmax returns the maximum length allowed for MATLAB® identifiers. MATLAB identifiers include:

  • Variable names

  • Structure field names

  • Script, function, and class names

  • Model names

Use the namelengthmax function instead of hard-coding a specific maximum name length into your programs. Then, if the identifier length changes in a future MATLAB release, it is not necessary to update this limit in your code.

Examples

collapse all

l = namelengthmax
l =

    63

Introduced before R2006a

Was this topic helpful?