Personal tools
You are here: Home CSE Student Resources HPC Resources samples matlab.pbs

matlab.pbs

Serial pbs job running a matlab polar-plot.m file.

Here is a simple serial script to run a matlab script.

matlab.pbs:

#!/bin/sh
#PBS -l nodes=1:ppn=1
#PBS -l walltime=00:10:00
#PBS -q inti@surya-0
cd $PBS_O_WORKDIR
/usr/local/bin/matlab -nojvm -nodesktop -nosplash< polar-plot.m

Here is the matlab script for a simple polar plot

polar-plot.m:

angle = 0:.1*pi:3*pi;
             radius = exp(angle/20);
             polar(angle,radius),...
             title('An Example Polar Plot'),...
             grid
print -deps polar-plot.ps;
quit;
Document Actions