MATLAB/Interactive

From ScientificComputing
Jump to: navigation, search

You can run an interactive MATLAB session on the login node, to do some quick tests, but larger calculations must be submitted through the batch system. In order to start an interactive MATLAB session, load the matlab module and type the command matlab.

[sfux@eu-login-03 ~]$ module load matlab/8.2
[sfux@eu-login-03 ~]$ matlab -nodisplay -nojvm -singleCompThread
Warning: No display specified.  You will not be able to display graphics on the screen.
Warning: No window system found.  Java option 'Desktop' ignored.

                                                   < M A T L A B (R) >
                                         Copyright 1984-2013 The MathWorks, Inc.
                                           R2013b (8.2.0.701) 64-bit (glnxa64)
                                                     August 13, 2013

No window system found.  Java option 'Desktop' ignored.

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.


>> vpa(exp(1),50)                                                                                                             
                                                                                                                             
ans =                                                                                                                         
                                                                                                                             
2.7182818284590455348848081484902650117874145507812                                                                           
                                                                                                                             
>>

If you have established an SSH connection with X11 forwarding enabled, then the matlab command will start the MATLAB GUI.