Remove comments in source code
Version 1.0.1 (5.48 KB) by
Stéphane Issartel
Removes m-style comments from code.
Removes m-style comments from code.
Cite As
Stéphane Issartel (2026). Remove comments in source code (https://www.mathworks.com/matlabcentral/fileexchange/182709-remove-comments-in-source-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: rmcomment, MATLAB comment remover, % MATLAB Comment Stripping Toolbox
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
