开发者

How to print a file with comments in MATLAB?

开发者 https://www.devze.com 2023-03-10 06:12 出处:网络
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 Cmd

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.

How to print a file with comments in MATLAB?

0

精彩评论

暂无评论...
验证码 换一张
取 消