MATLAB

From FarmShare

(Difference between revisions)
Jump to: navigation, search
m (Jupyter notebook: clarity, added link)
Line 1: Line 1:
-
== getting list of available matlab versions ==
+
== Getting Started  ==
-
You can run module spider matlab to get a list of available matlab versions
+
Run <code>module avail</code> to get a list of all software modules, or <code>module spider matlab</code> to get a list of available versions of MATLAB.
<source lang="sh">
<source lang="sh">
-
$ module spider matlab
+
module spider matlab      
-
  --------------------------------------------------------------------------------------------------------------------
+
--------------------------------------------------------------------------------------------------------------------------------
   matlab:
   matlab:
-
  --------------------------------------------------------------------------------------------------------------------
+
--------------------------------------------------------------------------------------------------------------------------------
     Description:
     Description:
-
       MATLAB and toolboxes
+
       A multi-paradigm numerical computing environment and programming language.
     Versions:
     Versions:
-
         matlab/r2012b
+
         matlab/r2016b
-
         matlab/r2013a
+
         matlab/r2017a
-
  --------------------------------------------------------------------------------------------------------------------
+
--------------------------------------------------------------------------------------------------------------------------------
-
  To find detailed information about matlab please enter the full name.
+
-
  For example:
+
-
 
+
-
    $ module spider matlab/r2013a
+
-
  --------------------------------------------------------------------------------------------------------------------
+
-
 
+
-
 
+
-
</source>
+
-
 
+
-
 
+
-
==first steps==
+
-
 
+
-
Per [[FarmShare software]] try something like:
+
-
 
+
-
<source lang="sh">
+
-
module avail
+
-
module load matlab
+
</source>
</source>
-
If you're running MATLAB for the first time, it'll try to write some stuff into $HOME/.matlab so make sure you have your [[AFS]] tokens or else MATLAB will crash with an undecipherable error message.
+
Use <code>module load</code> to set up your environment, and then run <code>matlab</code> to start an [[Matlab-interactive|interactive]] session.
-
As of 9/22/2013 this works on the corn.stanford.edu cluster but NOT on the myth.stanford.edu cluster.
+
module load matlab
 +
matlab
-
==interactive Matlab==
+
If you have not configured a remote display MATLAB will start in text mode, but the MATLAB desktop is supported.
-
Info here: [[Matlab-interactive]]
+
ssh -X sunetid@rice.stanford.edu
 +
module load matlab
 +
matlab &
== Jupyter ==
== Jupyter ==

Revision as of 11:05, 14 September 2017

Getting Started

Run module avail to get a list of all software modules, or module spider matlab to get a list of available versions of MATLAB.

module spider matlab       

--------------------------------------------------------------------------------------------------------------------------------
  matlab:
--------------------------------------------------------------------------------------------------------------------------------
    Description:
      A multi-paradigm numerical computing environment and programming language.

     Versions:
        matlab/r2016b
        matlab/r2017a

--------------------------------------------------------------------------------------------------------------------------------

Use module load to set up your environment, and then run matlab to start an interactive session.

module load matlab
matlab

If you have not configured a remote display MATLAB will start in text mode, but the MATLAB desktop is supported.

ssh -X sunetid@rice.stanford.edu
module load matlab
matlab &

Jupyter

MATLAB can also be run in a Jupyter notebook on FarmShare servers and used via a web browser.

The MATLAB Jupyter kernel is available as part of the prebuilt Jupyter environment accessible via the Jupyter installation guide.

parallel Matlab

Info here: Matlab-parallel

Personal tools
Toolbox
LANGUAGES