What are the rules for naming script files?
Show older comments
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.
Accepted Answer
More Answers (1)
Andrew Newell
on 24 Feb 2012
0 votes
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!