只想要保存结果成图片到某个路径就行了。其实我是想用java调用matlab程序,然后把执行结果显示到网页中。怎么让没有figure窗口弹出。 x=-pi:2*pi/300:pi; y=sin(x);plot(x,y);saveas(gcf,['F:\abc','.jpg']);