Currently I call can only functions with string or integer arguments using this script
#!/bin/sh
matlab_exec=matlab
X="${1}(${2})"
echo ${X} > matlab_command_${2}.m
cat matlab_command_${2}.m
${matlab_exec} -nojvm -nodisplay -nosplash < matlab_command_${2}.m
rm matlab_command_${2}.m
However it only accepts strings or integers. To call it I would run this command
./run funtions arg1,arg2
How could I make it so it would take a matrix but through the command line
i.e matrix [1 2 3; 4 5 6; 7 8 9]