1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 02:27:10 +03:00
mal/impls/matlab/run

14 lines
346 B
Plaintext
Raw Normal View History

#!/bin/bash
args=""
if [ "$#" -gt 0 ]; then
args="'$1'"
for a in "${@:2}"; do
args="$args,'$a'"
done
fi
if [ "$matlab_MODE" = "matlab" ] ; then
exec matlab -nodisplay -nosplash -nodesktop -nojvm -r "${STEP:-stepA_mal}($args);quit;"
else
exec octave -q --no-gui --no-history --eval "${STEP:-stepA_mal}($args);quit;"
fi