Other directives like the “#” compiler directive in MATLAB are indicated with the %# token. In R2008a, the MATLAB language supports the following directives:
Since these directives are also MATLAB comments, you can easily put additional comments on the same line explaining what the token is doing there.
Please don’t abuse cells for the sake of folding. If your code is too big, for your eyes’ sake, break up the file into separate functions.
By
Michael Katz
Mike is a developer on the MATLAB Mobile team. When not describing himself in the third person, biking, homebrewing, or rooting for the home team, he's busy trying to make the world a better place for programming.
Hello Mike,
first, thanks for mentioning me ;-)
I was wondering if you plan to introduce more pragma type directives in the upcoming release?
kind regards, Han
Han,
We are always investigating new ways to enhance the MATLAB language and improve the desktop experience. I can’t comment on any specific plans, we try to balance the advantage that the meta information supplies as well various editing models versus cluttering up one’s MATLAB file with non-code text and complicating the language.
If the pragma usage expands, I would expect it come from toolboxes that provide different ways of running a particular file.