l******a 发帖数: 3803 | 1 有没有这样的可能:
在一台UNIX上SSH到一台Linux,然后运行Matlab commandline
(no GUI), 运行一个已写的Matlab程序作图并存起来。
因为Matlab是命令行运行的,是不是没这个可能?
或者有什么trick? |
E*V 发帖数: 17544 | 2 yes you can
【在 l******a 的大作中提到】 : 有没有这样的可能: : 在一台UNIX上SSH到一台Linux,然后运行Matlab commandline : (no GUI), 运行一个已写的Matlab程序作图并存起来。 : 因为Matlab是命令行运行的,是不是没这个可能? : 或者有什么trick?
|
l******a 发帖数: 3803 | 3
谢谢!
比如,ssh然后matlab -nodesktop.
用plot(xxxxx,xx)画图,然后,
imwrite存起来。
这样的话,figure是不是看不见?
但能存起来?
【在 E*V 的大作中提到】 : yes you can
|
E*V 发帖数: 17544 | 4 why don't you just try it out?
it is not hard
【在 l******a 的大作中提到】 : : 谢谢! : 比如,ssh然后matlab -nodesktop. : 用plot(xxxxx,xx)画图,然后, : imwrite存起来。 : 这样的话,figure是不是看不见? : 但能存起来?
|
l******a 发帖数: 3803 | 5
I will, thank you!
【在 E*V 的大作中提到】 : why don't you just try it out? : it is not hard
|
l******a 发帖数: 3803 | 6
not working - tried.
saveas() not working.
【在 E*V 的大作中提到】 : why don't you just try it out? : it is not hard
|
b*****l 发帖数: 9499 | 7 yes, you could, but no, you can't
打倒 matlab~~~ 新版本不再支持这个功能了。害得我非得 vnc。。。 nnd,现在 vnc
都不成了。。。
想当年多爽啊,在本地 ssh 过去,在服务器上 screen,再 samba 回本地,存成 jpg,
eps, fig 各一份,直接看 jpg。
唉,唉。
【在 E*V 的大作中提到】 : yes you can
|
b*****l 发帖数: 9499 | 8 不是 imwrite,用 savevas。
【在 l******a 的大作中提到】 : : not working - tried. : saveas() not working.
|
E*V 发帖数: 17544 | 9 are you sure?
I always do that
【在 l******a 的大作中提到】 : : not working - tried. : saveas() not working.
|
E*V 发帖数: 17544 | 10 你们用那过版本?我现在再是一下阿
【在 b*****l 的大作中提到】 : 不是 imwrite,用 savevas。
|
|
|
E*V 发帖数: 17544 | 11 version r2008b
successful
【在 E*V 的大作中提到】 : 你们用那过版本?我现在再是一下阿
|
b*****l 发帖数: 9499 | 12 R2009b
【在 E*V 的大作中提到】 : 你们用那过版本?我现在再是一下阿
|
E*V 发帖数: 17544 | 13 kao!
【在 b*****l 的大作中提到】 : R2009b
|
b*****l 发帖数: 9499 | 14 嗯,嗯。
>> version
ans =
7.9.0.529 (R2009b)
痛骂 matlab!
【在 E*V 的大作中提到】 : kao!
|
E*V 发帖数: 17544 | 15 好,打死我也不升级
【在 b*****l 的大作中提到】 : 嗯,嗯。 : >> version : ans = : 7.9.0.529 (R2009b) : 痛骂 matlab!
|
l******a 发帖数: 3803 | 16 Yeah I can now.
Trick:
in Linux, start Matlab by:
matlab -nodisplay
in your matlab code,
make every figure's 'Visible' setting to 'off'.
Then you're good to go. |
b*****l 发帖数: 9499 | 17 呵呵,理论上可行,事实上不可行。细节记不清了,好象是和 jvm 有关。
【在 l******a 的大作中提到】 : Yeah I can now. : Trick: : in Linux, start Matlab by: : matlab -nodisplay : in your matlab code, : make every figure's 'Visible' setting to 'off'. : Then you're good to go.
|
l******a 发帖数: 3803 | 18
?? wat u meant?
I just did it:)
btw, jvm is on.
The reason matlab is used this way is, it will be run on a data acquisition computer. while the computer will mostly run its application recording data.But then some intermediate check needed:
so we need to remotely run a matlab process to check current settings.
So, as little intrusive as possible.
【在 b*****l 的大作中提到】 : 呵呵,理论上可行,事实上不可行。细节记不清了,好象是和 jvm 有关。
|
E*V 发帖数: 17544 | 19 version?
acquisition computer. while the computer will mostly run its application
recording data.But then some intermediate check needed:
【在 l******a 的大作中提到】 : : ?? wat u meant? : I just did it:) : btw, jvm is on. : The reason matlab is used this way is, it will be run on a data acquisition computer. while the computer will mostly run its application recording data.But then some intermediate check needed: : so we need to remotely run a matlab process to check current settings. : So, as little intrusive as possible.
|
b*****l 发帖数: 9499 | 20 我再试一试,等再碰到问题时贴上来。。。
acquisition computer. while the computer will mostly run its application
recording data.But then some intermediate check needed:
【在 l******a 的大作中提到】 : : ?? wat u meant? : I just did it:) : btw, jvm is on. : The reason matlab is used this way is, it will be run on a data acquisition computer. while the computer will mostly run its application recording data.But then some intermediate check needed: : so we need to remotely run a matlab process to check current settings. : So, as little intrusive as possible.
|
|
|
b*****l 发帖数: 9499 | 21 那啥,我验证,的确 work。。。
nnd,当时是啥不 work 来着,matlab 还有一个提示,说该功能在新版本的 text-mode
下不再支持。。。 我当时还跑到这里控诉来着。。。 等我碰见了贴过来哈。
【在 E*V 的大作中提到】 : version? : : acquisition computer. while the computer will mostly run its application : recording data.But then some intermediate check needed:
|
l******a 发帖数: 3803 | 22
version 7.9.0.529 (R2009b)
【在 E*V 的大作中提到】 : version? : : acquisition computer. while the computer will mostly run its application : recording data.But then some intermediate check needed:
|
o**n 发帖数: 1249 | 23 why do you need jvm. I always run matlab -nojvm -nosplash
just lose documentation
【在 b*****l 的大作中提到】 : 呵呵,理论上可行,事实上不可行。细节记不清了,好象是和 jvm 有关。
|
b*****l 发帖数: 9499 | 24 i used to use nojvm also, but now in R2009 jvm is required.
【在 o**n 的大作中提到】 : why do you need jvm. I always run matlab -nojvm -nosplash : just lose documentation
|