Running matlab from linux terminal

59 ビュー (過去 30 日間)
Mahith Madhana Kumar
Mahith Madhana Kumar 2021 年 2 月 7 日
回答済み: Sourabh Kondapaka 2021 年 2 月 9 日
Hi,
I was wondering whether someone could help me in figuring out why running a matlab script is much much slower when run from a linux terminal as compared to that run from matlab windows itself.
Lets say I have a matlab .m file called frequency.m. This when run from matlab windows itself (I mean the desktop matlab application) takes about 10 minutes to produce the output whereas the same .m file when run from the terminal window using the line of code:
matlab -nodisplay -nosplash -nodesktop -r "run('path_to_my_script/frequency.m) ; exit ; "
takes about 30 minutes to produce the same output.
The path_to_my_script was the path which I found by moving to the directory containing the frequency.m file from my terminal and typing pwd. The path so obtained was inserted into path_to_my_script in the above code.
Is there any reason for this and any solution to make the script run faster from linux terminal?
Thanks.
  4 件のコメント
Mario Malic
Mario Malic 2021 年 2 月 7 日
i can't tell exactly, it's best if you check the documentation, as there are some prerequisites to running the script like that.
Mahith Madhana Kumar
Mahith Madhana Kumar 2021 年 2 月 7 日
Allright. Thank you.

サインインしてコメントする。

採用された回答

Sourabh Kondapaka
Sourabh Kondapaka 2021 年 2 月 9 日
A similar question has been answered here and here
You can check the documentation for more details.

その他の回答 (0 件)

カテゴリ

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