File Exchange

image thumbnail

removeComments(file​name,commentIndicat​or)

version 1.0.0.1 (1.32 KB) by Brett Shoelson
Returns the contents of a file with comments stripped.

1 Download

Updated 01 Sep 2016

View License

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 (2019). removeComments(filename,commentIndicator) (https://www.mathworks.com/matlabcentral/fileexchange/48057-removecomments-filename-commentindicator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.0.1

Updated license

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: % MATLAB Comment Stripping Toolbox