operating Matlab via Ubuntu terminal

3 ビュー (過去 30 日間)
Aviv Priel
Aviv Priel 2022 年 6 月 30 日
編集済み: Bjorn Gustavsson 2022 年 6 月 30 日
Hello,
I need to run a Matlab script (that includes other scripts in it) via Ubuntu terminal, without the matlab gui.
I understood that the best way to preform it is with Matlab batch mode, however I didn't find guide on the subject.
Thank you!

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2022 年 6 月 30 日
編集済み: Bjorn Gustavsson 2022 年 6 月 30 日
It should be possible to do things like this from any standard unix-terminal:
$ matlab -nodesktop -nosplash -r YOUR-SCRIPT
You might have to doodle around a bit making sure that you get the matlab-path set up to all the directories of the sub-scripts etc. You can have a look at all the command-line options in the /usr/bin/matlab file (or wherever you have it on your system) or simply do:
$ matlab -help
HTH

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by