run matlab help function_name from terminal

1 回表示 (過去 30 日間)
Atin
Atin 2022 年 6 月 29 日
コメント済み: Atin 2022 年 6 月 29 日
Dear Community,
I am trying to execute matlab help command for a function from terminal. The command can be easily executed from the MATLAB application, however it does not execute in terminal.
If I try -
matlab help function_name
then it starts the application.
If I try -
matlab -nodisplay -nodesktop help function_name
then it starts matlab on terminal.
But in none the cases result for help is printed.
In MATLAB Command window it prints the expected result (shown below). And I want to ask how can we get this in the terminal ?

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 6 月 29 日
matlab -nodisplay -nodesktop -r "help function_name"
  1 件のコメント
Atin
Atin 2022 年 6 月 29 日
Thank you for the answer. I understood the mistake was not to write command within double-quotes. Your answer did work, however it started command window and then I had to quit it.
But based on your answer, I tried -
matlab -batch "help function_name"
and it printed the only help text without starting the command window.

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

カテゴリ

Help Center および File ExchangeApplication Deployment についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by