summaryrefslogtreecommitdiff
path: root/code/glue/exec-matlab
diff options
context:
space:
mode:
Diffstat (limited to 'code/glue/exec-matlab')
-rwxr-xr-xcode/glue/exec-matlab8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/glue/exec-matlab b/code/glue/exec-matlab
new file mode 100755
index 0000000..ccb0d23
--- /dev/null
+++ b/code/glue/exec-matlab
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -f $0.m ]; then
+ env - bash -c "(echo \"$1\"; cat $0.m) | matlab -nodesktop"
+# env - bash -c "cat $0.m | octave"
+else
+ echo file $0.m not found
+fi
contact: Jan Huwald // Impressum