How to run matlab function in Linux command line?

Hi!
So I wrote a function in matlab (with one input) and I would like to run it through the Linux command line.
I went through some answers in the community and I saw people saying this command:
matlab -nodisplay -r "functionname(argument1, argument2, argumentN);exit"
But what is "matlab" at the beginning? I am quite lost on what is that and how to obtain this "matlab" command.
Can anyone please shine some light on me with regards to this issue?
Thanks a lot!

 採用された回答

Yro
Yro 2019 年 8 月 29 日
編集済み: Yro 2019 年 8 月 30 日

0 投票

Hi, matlab is the executable once the software is installed on Linux. Check this link where you can check the available startup options: https://la.mathworks.com/help/matlab/ref/matlablinux.html
Regards.

3 件のコメント

Kash Costello
Kash Costello 2019 年 8 月 30 日
Hi there, do you have another link? It's not working...
Yro
Yro 2019 年 8 月 30 日
編集済み: Yro 2019 年 8 月 30 日
I don't know why it doesn't work, copy the following link and paste it in the browser.
Kash Costello
Kash Costello 2019 年 8 月 30 日
Thanks!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2019 年 8 月 29 日

コメント済み:

2019 年 8 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by