What are the rules for naming script files?
Mostra commenti meno recenti
Hello,
This is perhaps one of those "I-know-the-answer-still-I-ask" questions. Today, I had a strange error in one of my scripts.
??? 17McModel
|
Error: Unexpected MATLAB expression.
The name of the script is "17McModel.m". After a lot of struggling to figure out the error, I realized that Matlab script files names cannot start with a number. I had rename my source files through windows! (Friday exercise of organizing the work folder!)
I tried to look for more information on naming rules for Matlab script and function files. In the Matlab documentation the only place that has any information is,
Matlab > User's Guide > Programming Fundamentals > Programming Tips > Files and Filenames > Naming Functions
and that is it.
Could anybody share more information and tricks-of-trade if you will. Like, what works and what does not, what naming conventions may be faster among other things.
Risposta accettata
Più risposte (1)
Andrew Newell
il 24 Feb 2012
0 voti
Categorie
Scopri di più su Variables in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!