From d0a72f92977baebaed915fbb2d14f2d5ddec8306 Mon Sep 17 00:00:00 2001
From: Joe Zhao <ztuowen@gmail.com>
Date: Tue, 12 May 2015 14:23:24 +0800
Subject: misc

---
 runMatlab.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100755 runMatlab.sh

(limited to 'runMatlab.sh')

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}
-- 
cgit v1.2.3-70-g09d2