removeComments(file​name,commentIndicat​or)

版本 1.0.0.1 (1.3 KB) 作者: Brett Shoelson
Returns the contents of a file with comments stripped.
360.0 次下载
更新时间 2016/9/1

查看许可证

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.

引用格式

Brett Shoelson (2024). removeComments(filename,commentIndicator) (https://www.mathworks.com/matlabcentral/fileexchange/48057-removecomments-filename-commentindicator), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Import and Export 的更多信息
致谢

参考作品: % MATLAB Comment Stripping Toolbox

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0