piston/packages/MATL/22.7.4/run

13 lines
275 B
Plaintext
Raw Permalink Normal View History

2023-05-24 18:20:30 +02: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'"