Variable names can contain upto how much number of characters in matlab last release version.?

2 views (last 30 days)
Variable names can contain upto how much number of characters in matlab last release version.?

Answers (2)

KSSV
KSSV on 8 Oct 2016
doc namelengthmax

Guillaume
Guillaume on 8 Oct 2016
A variable name can have as many characters as you want, however matlab only uses the first namelengthmax characters to differentiate variables, so any character after that is ignored.
As far as I know namelengthmax returns 63 on all platforms and versions of matlab.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!