MATLAB Answers


what can be maximum number number of alphabet in name of model ?

Asked by Apurv Singh on 6 Sep 2017
Latest activity Commented on by Apurv Singh on 6 Sep 2017
hi what can be maximum length of a model name ?

  1 Comment

model name? be clear of your question.

Sign in to comment.


1 Answer

Answer by José-Luis
on 6 Sep 2017
Edited by José-Luis
on 6 Sep 2017
 Accepted Answer

From the documentation:
"Model Names:
Model file names must start with a letter and can contain letters, numbers, and underscores. The file name must not be:
A language keyword (e.g., if, for , end) _A reserved name: 'simulink', 'sl', 'sf' A MATLAB® software command The total number of characters in the model name must not be greater than a certain maximum, usually 63 characters. To find out whether the maximum for your system is greater than 63 characters, use the MATLAB namelengthmax command.
To understand how MATLAB determines which function to call when you specify a model name, see Function Precedence Order (MATLAB).
If I understood your question right, the number you are looking for might be 63. Use namelengthmax() to be sure.

  1 Comment

Thank you for answer i should have used Model file names in question

Sign in to comment.