How to delete all the commented content in a m-file?
72 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 18 de Dic. de 2013
Editada: MathWorks Support Team
el 9 de Mzo. de 2021
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?
Respuesta aceptada
MathWorks Support Team
el 9 de Mzo. de 2021
Editada: MathWorks Support Team
el 9 de Mzo. de 2021
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!