Save figure on a server machine with no display

Hi all, I've generated a matlab application (using MCC) that will run on a unix server (with no display). Unfortunately this application have to save some plots (without display them). Everything works good (on my linux machine); but when i run the application over the unix server the execution does not work! It seems that if I work with plots a display has to be setted on the machine. I've specified on the code to make the plot not visible, but it still doesn't work: the execution break. Any suggestions?
Eugenio.

답변 (3개)

Albert Yam
Albert Yam 2012년 7월 30일

0 개 추천

Not a direct solution, but you could save the data, and reproduce the plots on another machine. You probably have the data saved already, so it might just be writing a plotting script. [Assuming of course it is not huge data. At which point, instead of plotting, save only the required data for that plot.]
Eugenio
Eugenio 2012년 7월 30일

0 개 추천

Hi Albert, thank you for the answer. The figure we're talking about is a scatterplot created by matlab, and it counts hundreds and hundreds points; so we thought that export the matlab figure was the best solutions. So, isn't any solutions to export this huge figure?
Robert Cumming
Robert Cumming 2012년 7월 30일

0 개 추천

use the print command
doc print
you can set it to save individual file (e.g. png)
print ( handle, '-dpng', 'filename' )
or you could build a postscript file which you could then convert to a pdf for example.

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

질문:

2012년 7월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by