You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Specify the name of a file and (optionally) the character indicator for a comment, and removeComments will return (in a cell array or a char) the line-by-line contents of the file without comments.
Cite As
Brett Shoelson (2026). removeComments(filename,commentIndicator) (https://se.mathworks.com/matlabcentral/fileexchange/48057-removecomments-filename-commentindicator), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: % MATLAB Comment Stripping Toolbox
General Information
- Version 1.0.0.1 (1.32 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
