removeComments(file​name,commentIndicat​or)

Returns the contents of a file with comments stripped.

您现在正在关注此提交

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 (2026). removeComments(filename,commentIndicator) (https://ww2.mathworks.cn/matlabcentral/fileexchange/48057-removecomments-filename-commentindicator), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: % MATLAB Comment Stripping Toolbox

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.1

Updated license

1.0.0.0