C-style MATLAB preprocessor
C-style MATLAB preprocessor

C-style MATLAB preprocessor

Simple, only supports ifdef/endif/else with define/undef, simple syntax for &&/||.

Download
Download

You are now following this Submission

Cite As

Misha Koshelev (2026). C-style MATLAB preprocessor (https://in.mathworks.com/matlabcentral/fileexchange/26713-c-style-matlab-preprocessor), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Environment and Settings in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0

Swapped rmdir and path statements to avoid warning.

Download
1.3.0

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.

Download
1.2.0

Support for simple recursion (see examples).

Download
1.1.0

Changed based on comments - thank you. Intended use for others is by running mpp('mpptest',param). Added some comments. Simple but works well.

Download
1.0.0

Download