I am trying to send a Matlab script to a Linux server as a batch job, but have not succeeded so far. I am very new to Linux, so I'm not sure what I am missing, but I tried every permutation I can think of.
#!/bin/bash
matlab -nodisplay -nojvm -nodesktop -nosplash
run testscript.m
I also tried these lines with the same header:
export SCRIPT="/panfs/panasas01/phph/testscript.m"
matlab -nodisplay -nojvm -nodesktop -nosplash
$SCRIPT
And everything in between: with the run .m command , quotation marks, file path , etc. The log file indicates that Matlab opens, but then cannot find the command.
I also tried opening matlab and typing:
batch('testscript')
I'm not sure if this command does what I'm looking for, but whatever it leads to a lot of error messages about the inability to find the variable argsin, as well
' ( 172) -singleton rhs , "
, ( a = 10) . script .
- ?