You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). rmcomment (https://ch.mathworks.com/matlabcentral/fileexchange/70254-rmcomment), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Remove comments in source code
General Information
- Version 1.1.0 (2.59 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
