Filter löschen
Filter löschen

How to run a MATLAB .m file in Linux CentOS 7.0

9 Ansichten (letzte 30 Tage)
Hugo
Hugo am 6 Mai 2021
Hi,
I am new to Linux and I would like to run an .m file that I have programmed. I tried to run as some persons say here: https://stackoverflow.com/questions/38723138/matlab-execute-script-from-command-linux-line
I adapted the following commands to my situation:
matlab -nodisplay -nosplash -nodesktop -r "run('path/to/your/script.m');exit;"
matlab -nodisplay -nosplash -nodesktop -r "run('$1');"
matlab -batch "test"
However, none works for me.
What is really strange is that if I write matlab into the terminal with root access (sudo -s) it does not recognize the command. Moreover, the terminal does not recognize any command starting with matlab.
Any help would be really appreciated.
Thank you,

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by