Run matlab commands from a bash script
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Michael Joslin
am 22 Okt. 2019
Bearbeitet: Michael Joslin
am 22 Okt. 2019
I'm wirting a shell script to automate a few tasks. From my shell script I start Matlab with the following line:
matlab -nosplash -nodesktop
After startting matlab I want to run a few commands for example:
path(path,'path to be added')
How do I feed these commands to my open instantiation of Matlab?
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 22 Okt. 2019
If you're using an earlier release, use the -r startup option.
Follow -batch or -r with the name of the script or function you want to execute or the list of commands you want to execute.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!