Mahmood_N
Mahmood_N

Reputation: 531

How to print a file with comments in MATLAB?

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

Answers (1)

abcd
abcd

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.

enter image description here

Upvotes: 7

Related Questions