MATLAB comment remover

This tool removes the all comments from MATLAB file.

You are now following this Submission

- No regular expressions used
- Output filename is optional
- File operation from temporary directory
- Managed all kind of '%' symbols in MATLAB file
- Smart indentation applied after comment removal
- Help and commenting provided
- Sample file is included

%---------------- All comments and suggestions are welcome ----------------

Cite As

Bhaskar R (2026). MATLAB comment remover (https://ch.mathworks.com/matlabcentral/fileexchange/73211-matlab-comment-remover), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Remove comments in source code

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with R2016a and later releases

Platform Compatibility

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