我用php的shell_exec()函数执行matlab(启动参数-nodisplay -nosplash等),其他命令正确,调用绘图函数plot时,出现以下错误:
?Warning: Objects of graph2d.lineseries class exist - not clearing this class or any of its super-classes}?
已经试过unset DISPLAY等方法,没有效果,但是通过ssh远程登陆之后可以plot,如下:[dc@localhost ~]$ ssh -l dc 222.25.191.232
Address 222.25.191.232 maps to localhost.localdomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
[email protected]'s password:
Last login: Tue Sep 11 15:11:51 2012 from 222.25.191.232
[dc@localhost ~]$ matlab
Warning: No display specified. You will not be able to display graphics on the screen. < M A T L A B (R) >
Copyright 1984-2012 The MathWorks, Inc.
R2012a (7.14.0.739) 32-bit (glnx86)
February 9, 2012
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
>> plot(1:10)
>>
另外,保存图片也正常,唯独使用php调用的时候出现问题。
求教。
?Warning: Objects of graph2d.lineseries class exist - not clearing this class or any of its super-classes}?
已经试过unset DISPLAY等方法,没有效果,但是通过ssh远程登陆之后可以plot,如下:[dc@localhost ~]$ ssh -l dc 222.25.191.232
Address 222.25.191.232 maps to localhost.localdomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
[email protected]'s password:
Last login: Tue Sep 11 15:11:51 2012 from 222.25.191.232
[dc@localhost ~]$ matlab
Warning: No display specified. You will not be able to display graphics on the screen. < M A T L A B (R) >
Copyright 1984-2012 The MathWorks, Inc.
R2012a (7.14.0.739) 32-bit (glnx86)
February 9, 2012
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
>> plot(1:10)
>>
另外,保存图片也正常,唯独使用php调用的时候出现问题。
求教。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货