removeComments(file​name,commentIndicat​or)

Returns the contents of a file with comments stripped.

Download
Download

You are now following this Submission

Cite As

Brett Shoelson (2026). removeComments(filename,commentIndicator) (https://ch.mathworks.com/matlabcentral/fileexchange/48057-removecomments-filename-commentindicator), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: % MATLAB Comment Stripping Toolbox

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated license

Download
1.0.0-0

Download