I have some code where I load in some data, build a waterfall plot, and then print that plot using the "print" command (with the `-dpng` and `-r300` arguments set).
When I run the script from the Command Window, it takes 60 seconds to run. When I run the same script from the command line (Terminal), it takes ~760 seconds to run.
$ /Applications/MATLAB_R2016a.app/bin/matlab -nodisplay -nosplash < test_waterfall.m
Why is running the script from the Terminal so much slower?
Best Answer