It is so disappointing when I found it is so slow to use the ssh -X to run Matlab in my office from my apt. Turns out it is the problem of jre...
Thus, I tried to do it without most of the GUI:
ssh -X
matlab -nodesktop -nosplash
then, it became a command line version of matlab. When I do things like edit x.m, the GUI editor still shows up! And pretty fast.
whos will give all the current variables in the worksapce. So the debugging will be fine.
helpwin give me the GUI help, good.
2008年10月4日星期六
2008年10月3日星期五
Matlab Linux can not show command window
After installing Matlab r2007a on my TA computer, one weird problem occurred. It seems that the command window can not be displayed, only a blank window. Anything else seems to be fine, coz when I click start, I can run simulink and so on.
In the command line, the error is:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb558d767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb558d8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb591e1bd]
#3 /usr/local/mathworks/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so [0xaef5122e]
......
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre
then everything goes well again...
Just remember to modify the version of java when updated...
In the command line, the error is:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb558d767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb558d8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb591e1bd]
#3 /usr/local/mathworks/sys/java/jre/glnx86/jre1.6.0/lib/i386/xawt/libmawt.so [0xaef5122e]
......
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.06/jre
then everything goes well again...
Just remember to modify the version of java when updated...
订阅:
博文 (Atom)