Matlab and Octave Test Jobs
From UGP-Wiki
Matlab is a commercial product. Octave is an open source program similar to Matlab. Follow the procedure outlined here for both of them.
matlab.m is an input file to test matlab serial jobs. It looks like this:
'';
'The matrix x is:'
x = [1 2 3; 14 22 11; 17 5 8]
'';
'The inverse of the matrix x is:'
inv(x)
'';
'The matrix y is:'
y = [2 4 6; 1 33 25; 5 12 43]
'';
'The inverse of the matrix y is:'
inv(y)
'';
'The Dot product of x and y is:'
x * y'
quit;
To test using this job:
- Use the Data Manager to copy it to the cluster on which you will run it.
- Select "Applications" under the "Job Services" tab.
- Select Matlab under the cluster name from the frame on the left side of the page.
- To fill in the form:
- Enter the input file name matlab.m in the text field labeled "Stdin:<" replacing /dev/null which appears there by default.
- If matlab.m is not in your home directory, enter in the text field labeled "Directory:" either the full pathname of the directory containing matlab.m or a path relatative to your home directory.
- Click the "Submit Job" button.
The results will be written to stdout.

