how to print scripts in PDF on a mac os x?
5 次查看(过去 30 天)
显示 更早的评论
The MATAB print command does not allow me to use PDF. How can I print the scripts in PDF in MATLAB?
0 个评论
回答(4 个)
Kaustubha Govind
2011-4-6
I don't know that this is possible directly from MATLAB, but since MATLAB scripts are basically text files, why not open them up in any other text reader or word processing software and print to PDF?
EDIT:
The PUBLISH command can be used to achieve this. Try:
publish('myfile.m','pdf')
Note that you need to suppress any statement output with a semicolon, if you do not want the output of the statement to be published.
0 个评论
Juan
2011-4-6
3 个评论
Walter Roberson
2011-4-6
When you paste or drag a selection from the Editor to another application, such as Microsoft Word, the pasted text maintains the syntax highlighting colors and font characteristics from the Editor. MATLAB software pastes the selection to the Clipboard in RTF format, which many Microsoft Windows and Macintosh applications support.
Andrew Newell
2011-4-6
@Walter, it's a pity you didn't post this as a separate answer. I'd like to vote for it!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!