summaryrefslogtreecommitdiff
path: root/code/glue/exec-matlab
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 19:53:27 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 19:53:27 (GMT)
commit00b209240138660db1ded3ef3870023964ce6e4e (patch)
tree8ffaec780b060bdc478929aa714b8af2ee760671 /code/glue/exec-matlab
Initial commitHEADmaster
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