Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

Usage

module load matlab 2015b
OR
module load matlab/2012b
OR
module load matlab/2011a

Matlab 2011a

Usage

module load matlab/2011a

 module list
Currently Loaded Modulefiles:
  1) matlab/2011a


Matlab will be loaded in the PATH.



Install Directory

/sw/Matlab/2011a

Sample PBS script

cat power_plot.m

%>>>>>>>>>>>>>>>>>>>
%
%    John Burkardt
%
addpath('/export/home/sNUMBER/MatlabFileDir')

  fprintf ( 1, '\n' );
  fprintf ( 1, 'POWER_PLOT\n' );
  fprintf ( 1, '  Plot some data, store it in a PNG file.\n' );

  n = 200;
  x = 1 : n;
  y = 2 * rand ( 1, n ) - 1;
  y = sign ( y ) .* y.^2;
  y = cumsum ( y, 2 );
  plot ( x, y );

  xlabel ( 'X', 'FontName', 'Helvetica', 'FontWeight', 'bold', ...
    'FontSize', 16 );

  ylabel ( 'Y', 'FontName', 'Helvetica', 'FontWeight', 'bold', ...
    'FontSize', 16, 'Rotation', 0 );

  title ( 'Power\_Plot', 'FontName', 'Helvetica', 'FontWeight', ...
    'bold', 'FontSize', 16 );

  print -dpng 'power_plot.png';

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The data was stored in "power_plot.png".\n' );

  exit


%#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

cat pbs.00

#PBS -m abe
#PBS -M emailID@griffith.edu.au
#PBS -N Power_Plot
#PBS -l select=1:ncpus=2:mem=7g
#PBS -l walltime=6:00:00
source $HOME/.bashrc
###module load  matlab/2009b  (if using matlab 2009b)
module load  matlab/2011a
echo "Starting job"
matlab -nodisplay -nodesktop -nosplash < /export/home/<sNumber>/pbs/matlab/power_plot.m
echo "Done with job"


Submit the job as follows:

qsub pbs.00

Matlab 2009b

Usage

module load matlab/2009b

 module list
Currently Loaded Modulefiles:
  1) matlab/2009b


Matlab will be loaded in the PATH.

Install Directory

/sw/Matlab/2009b

Sample PBS script

See http://confluence.rcs.griffith.edu.au:8080/display/GHPC/matlab#matlab-SamplePBSscript

switch between the two versions

module switch matlab/2011a matlab/2009b

 module list
Currently Loaded Modulefiles:
  1) matlab/2009b

Matlab for Griffith researchers

Matlab is available through the software request system.

https://intranet.secure.griffith.edu.au/computing/software log into software requests and type matlab in the search software.

https://www102.griffith.edu.au/products.aspx?type=search&input=matlab

  • No labels