rmcomment

版本 1.1.0 (2.6 KB) 作者: Kim Dohyun
remove comments from m-file or MATLAB code string.
29.0 次下载
更新时间 2019/12/20

查看许可证

Remove comments from m-file or MATLAB code string.

Remove the following comments:
1. Starts with %
2. Surrounded by %{ and %} (here, %{ and %} should be at the beginning of the line.
3. any text after three dots

If there is any comment style which is not handled in this code,
please contact to kim92n@gmail.com

引用格式

Kim Dohyun (2026). rmcomment (https://ww2.mathworks.cn/matlabcentral/fileexchange/70254-rmcomment), MATLAB Central File Exchange. 检索时间: .

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

启发作品: Remove comments in source code

Community Treasure Hunt

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

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

1. Only accept filename
2. Bugfix - string handling.
3. Option for creating new file

1.0.0