Running multiple matlab .m files
23 views (last 30 days)
I was wondering how to simultaneously run .m matlab files (about 10 of them) from a linux terminal. I went through this link - https://www.mathworks.com/matlabcentral/answers/318764-how-to-run-two-matlab-scripts-in-parallel, but that was using functions wherein in my case I have multiple .m matlab files containing just lines of codes and no functions inside it.
I was opening up multiple terminals and using the command:
matlab -nodisplay -nosplash -nodesktop -r "run('path/to/your/script.m');exit;" | tail -n +11
to run multiple .m matlab files simultaneously but matlab keeps crashing in some cases while doing this. Any way to fix this?