#!/bin/bash #$ -S /bin/bash #$ -cwd #$ -q serial.q export PATH=$PATH:/software/matlab/bin/ # # ...set an ENVIRONMENT VARIABLE to ensure that the "matlab" # executable is on our "PATH"... matlab < myinput.m