Converting an m-code into a png
조회 수: 41 (최근 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에서 Convert Image Type에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!