Reputation: 531
I have a .m
file 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?
Upvotes: 4
Views: 2848
Reputation: 42225
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.
Upvotes: 7