rmcomment

Version 1.1.0 (2.59 KB) by Kim Dohyun
remove comments from m-file or MATLAB code string.
28 Downloads
Updated 20 Dec 2019

View License

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

Cite As

Kim Dohyun (2024). rmcomment (https://www.mathworks.com/matlabcentral/fileexchange/70254-rmcomment), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0

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

1.0.0