I'm testing simple mex functions today and I would like to add some comments. However, I noticed:
- If my comments are surrounded by "/* \*/", namely, /*comments*/, the compilation of mex file works fine.
- But if my comments are commented in the way using "//", namely, //comments, the compilation fails.
Can anybody help to explain why it is so? Does that mean, I'm not able to write comments in the way of "//comments" in Matlab mex files?
Best Answer