piston/packages/MATL/22.5.0/run

14 lines
276 B
Plaintext
Raw Normal View History

2021-12-30 19:12:20 +01:00
#!/usr/bin/env bash
# get file as first argument
file="$1"
# remove the file from $@
shift
# use the rest of the arguments as stdin
stdin=`printf "%s\n" "$@"`
# pass stdin into octave which will run MATL
echo "$stdin" | octave -W -p "$MATL_PATH" --eval "matl -of '$file'"