MATLAB Repo Comment Stripper

Functions for deleting specified comments from m-files in Git repos or single files

https://github.com/Zbyszard/Matlab-Comment-Stripper

You are now following this Submission

The package includes two functions:
-striprepo which deletes all or specified comments from a Git repository, e.g. you can delete comments that start with '%?', '%TODO:' or any other sequence
-stripfile which does the same but affects a given file or creates a modified copy
Block comments are affected this way:
%{
<any string>
comment content
%}
Check out README.md on GitHub for more detailed description.
Credits to Peter John Acklam for constructing the main regex used here.

Cite As

Mateusz Florczak (2026). MATLAB Repo Comment Stripper (https://github.com/Zbyszard/Matlab-Comment-Stripper/releases/tag/v1.0.0), GitHub. Retrieved .

Acknowledgements

Inspired by: % MATLAB Comment Stripping Toolbox

General Information

MATLAB Release Compatibility

  • Compatible with R2017a and later releases

Platform Compatibility

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

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.