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?
I have a .m file with comments in it. When I try to print
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.