diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-05-12 14:23:24 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-05-12 14:23:24 +0800 |
commit | d0a72f92977baebaed915fbb2d14f2d5ddec8306 (patch) | |
tree | 3f677e79883ca2b8c1a4c811b110c48827e78266 /runMatlab.sh | |
parent | 34de475999a22ac7280411e15339e77a0c8dbc2e (diff) | |
download | featext-d0a72f92977baebaed915fbb2d14f2d5ddec8306.tar.gz featext-d0a72f92977baebaed915fbb2d14f2d5ddec8306.tar.bz2 featext-d0a72f92977baebaed915fbb2d14f2d5ddec8306.zip |
misc
Diffstat (limited to 'runMatlab.sh')
-rwxr-xr-x | runMatlab.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runMatlab.sh b/runMatlab.sh new file mode 100755 index 0000000..88bb130 --- /dev/null +++ b/runMatlab.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +matlab_exec=matlab +tmpdir="/tmp" +inp="${1}(${2})" +scriptfile=${tmpdir}/matlab_command_${1}.m +echo ${inp} > ${scriptfile} +cat ${scriptfile} +${matlab_exec} -nodisplay -nosplash < ${scriptfile} +rm ${scriptfile} |