C-style MATLAB preprocessor
by Misha Koshelev
16 Feb 2010
(Updated 19 Feb 2010)
Simple, only supports ifdef/endif/else with define/undef, simple syntax for &&/||.
|
Watch this File
|
| File Information |
| Description |
Simple, only supports ifdef/endif/else with define/undef and simple syntax for doing boolean expressions.
My apologies to the author of the MPP package (also available). I needed something quick & dirty. Seems to work. Comes with test file. |
| MATLAB release |
MATLAB 7.6 (R2008a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 18 Feb 2010 |
Changed based on comments - thank you. Intended use for others is by running mpp('mpptest',param). Added some comments. Simple but works well. |
| 18 Feb 2010 |
Support for simple recursion (see examples). |
| 19 Feb 2010 |
Added support for pre-specifying defines on command line (_very_ raw). Also use new path each time, so that can actually run several instances of MATLAB, same m1 file, different defines, concurrently. |
| 19 Feb 2010 |
Swapped rmdir and path statements to avoid warning. |
|
Contact us at files@mathworks.com