![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167609/image.jpeg)
Text plots (plotting without figure in command line)
조회 수: 2 (최근 30일)
이전 댓글 표시
Is there a way (or a package) to plot figures in the Matlab command line without using the figures? For example, upon startup using
matlab -nojvm -nodesktop -nodisplay -nosplash
By a text plot, I mean something along the lines of ASCII art (using 'x's and 'o's for markers).
This is useful if one wants to run programs remotely and generate figures, but without using forwarding like "ssh -Y".
댓글 수: 0
채택된 답변
Doug Hull
2011년 6월 13일
This feature was deprecated. It was available on 01/10/84 according to this old version of MATLAB I have on my machine.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167609/image.jpeg)
Notice how extensive our language was at the time. :)
댓글 수: 0
추가 답변 (2개)
Walter Roberson
2011년 6월 13일
I don't know if it is impossible, but I do not know how to do it.
I have implemented that sort of thing a few times, but it was in the context of packages that deliberately exposed their plot driver routines so that users could supply custom device drivers for unsupported devices (or to for enhanced functionality.)
The avenue that is sort-of supported is to use print to create the graphic, perhaps as a .png file, and then to have something that converts the png file to the format you can use. The options are a bit limited with -nodisplay but there are options: see here
댓글 수: 1
Walter Roberson
2011년 6월 13일
You might be able to hack something by interfacing a driver according to the control logic used by graphics/private/render.m
Having scanned a little through there, I'm wondering if perhaps one might have an easier time by adapting Oliver's export_fig ?
Patrick Kalita
2011년 6월 13일
MATLAB doesn't do this out of the box (anymore!), and I'm not aware of any 3rd party products that do it.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!