I got another question to that...Is it possible to run two different scripts with the command line? I tried things like
matlab -nodisplay -r script1; script2;
but it wouldn't work. Right now I can just open matlab, run the script, close matlab and open it again to run the second script. Opening and closing matlab is very time consuming though. Is there a better way to run the second script without closing and reopening matlab? Thank you