【发布时间】:2010-12-23 14:53:49
【问题描述】:
我正在通过 SSH 连接到 Linux 服务器并进行一些 MATLAB 编程。我想将不可见的情节另存为
figH = figure('visible','off') ;
% Plot something
% save the plot as an image with same size as the plot
close(figH) ;
saveas() 和 print() 将改变保存图像的大小,不同于绘图的大小。同样对于print(),所有三种渲染器模式(-opengl、-ZBuffer 和-painters)都不能在 Linux 服务器上的终端仿真模式下使用。 getframe() 也不起作用。
我想知道如何解决这些问题?
谢谢和问候!
【问题讨论】:
-
您是否正在运行 X 服务器?
标签: matlab command-line save plot