Converting an m-code into a png
13 次查看(过去 30 天)
显示 更早的评论
Is it possible to convert an m-code into a png -- a picture of the code?
Thanks.
0 个评论
回答(2 个)
Image Analyst
2012-4-19
I believe Windows7 has a tool for dragging a rectangle out on your screen and saving it as an image file.
2 个评论
Walter Roberson
2012-4-19
There is no way provided within MATLAB to save code as a png.
It is not uncommon to be able to load code into a word processor, and save it as an image through there, if only indirectly such as by saving it from the word processor as a PDF and then converting the PDF to PNG (using ghostscript if you need to.)
Jan
2012-4-19
You can create an Undocumented: SyntaxTextPane, insert the contents of your M-file and use print to create the PNG.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!