필터 지우기
필터 지우기

How to delete all the commented content in a m-file?

조회 수: 29 (최근 30일)
I want to delete all comments in my program so that the end users will only get a clean file of codes. Is there any method automatically achieved that?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 3월 9일
편집: MathWorks Support Team 2021년 3월 9일
The ability to remove all comments in an m-file is not available in MATLAB 8.2 (R2013b). To workaround, you could write a script to screen the content of m-file and delete the comments, as the user submission in the following link:
Note that The MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by