Converting an m-code into a png

Is it possible to convert an m-code into a png -- a picture of the code?
Thanks.

回答 (2 件)

Image Analyst
Image Analyst 2012 年 4 月 19 日

0 投票

I believe Windows7 has a tool for dragging a rectangle out on your screen and saving it as an image file.

2 件のコメント

Richard
Richard 2012 年 4 月 19 日
Thank you, @Image Analyst! So essentially a screenshot? There isn't a way to "SaveAs" a png, is there?
Walter Roberson
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
Jan 2012 年 4 月 19 日

0 投票

You can create an Undocumented: SyntaxTextPane, insert the contents of your M-file and use print to create the PNG.

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

製品

質問済み:

2012 年 4 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by