Converting an m-code into a png
Mostrar comentarios más antiguos
Is it possible to convert an m-code into a png -- a picture of the code?
Thanks.
Respuestas (2)
Image Analyst
el 19 de Abr. de 2012
0 votos
I believe Windows7 has a tool for dragging a rectangle out on your screen and saving it as an image file.
2 comentarios
Richard
el 19 de Abr. de 2012
Walter Roberson
el 19 de Abr. de 2012
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
el 19 de Abr. de 2012
0 votos
You can create an Undocumented: SyntaxTextPane, insert the contents of your M-file and use print to create the PNG.
Categorías
Más información sobre Printing and Saving en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!