% MATLAB Comment Stripping Toolbox
Editor's Note: This file was selected as MATLAB Central Pick of the Week
This is a small collection of utilities for stripping MATLAB comments from MATLAB code. The code may be given in strings, cell arrays of strings, or read from a file or file identifier. There is full support for stripping comments from multi-line strings, that is strings with embedded newlines, which typically appear when an entire file is read in one go.
Cite As
Peter John Acklam (2024). % MATLAB Comment Stripping Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/4645-matlab-comment-stripping-toolbox), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: removeComments(filename,commentIndicator) , MATLAB Repo Comment Stripper, missingsemicolons
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
mlstripcomments/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |