Given a c file withe lot of comments. Ex: c code generated automatically. removing comments will make expose the source code. Use this m file for that
Nitin Skandan (2021). C code comment remover (https://www.mathworks.com/matlabcentral/fileexchange/11877-c-code-comment-remover), MATLAB Central File Exchange. Retrieved .
Tool works perfect.
nice program, achieves the same as a c-compiler preprocessing output (RTFM, when you need the option for that, maybe something like "cc -i").
Here all comments are typed over with white space so that the outputfile has the sames size.
After trying out comes the question, where is a C to MatLab converter. And shouldn't be there one that takes with the good C-comments ?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!