I have a .m
fil开发者_C百科e with comments in it. When I try to print it, it prints only the code and not the comments. Are there alternate ways to print from within the MATLAB Editor?
If you press CmdP on a mac (or CtrlP on Windows/Linux) from inside the MATLAB editor, it neatly prints out the entire file including the comments.
Here's a sample output from printing to a file.
精彩评论