Following some great advices, as this: suppress start message of Matlab I now use this line to execute Matlab script from within my preferred editor, without launching whole Matlab machinery:
matlab -nosplash -nojvm -logfile /tmp/matlab-log -wait < "$(FilePath)" \
> /dev/null 2 && sed '1,9d' /tmp/matlab-log
-nodisplay
switch is omitted as I want to be able to see plot output.
However, when using above line to evoke script that produces plot, plot window appears and then immediately disappears.
How to keep plot window visible, considering above execution line?
I know I could add waitforbuttonpress;
in each plot script, but looking for something more automatic w/o complicating execution line too much