I have a Matlab script named "main_wrapper.m" in my /home/user/MATLAB directory. I want to call this script from the Unix command line. This script ends with a quit, so it's expected to quit by itself. I want to call this script from the command line and have it quit all by itself.
I don't get results with:
shell$ cd /home/user/MATLAB/ && /usr/local/MATLAB/R2011b/bin/matlab -nosplash -nodesktop -r main_wrapper.m
/usr/local/MATLAB/R2011b/bin/matlab -r " cd /home/user/MATLAB; run (/home/user/MATLAB/main_wrapper); end; quit "
In either case MATLAB window opens up and doesn't run by itself.
How can I get the window to quit?