matlab function block querry

1 回表示 (過去 30 日間)
Akshay Math
Akshay Math 2020 年 2 月 7 日
コメント済み: Walter Roberson 2020 年 2 月 7 日
Sir i am using matlab function block and i want to terminate my execution when undesirable results are prouduced can u please tell the syntax or code just like exit is used in c programming

回答 (2 件)

Bhaskar R
Bhaskar R 2020 年 2 月 7 日
編集済み: Bhaskar R 2020 年 2 月 7 日
Use command exit or quit
  1 件のコメント
Akshay Math
Akshay Math 2020 年 2 月 7 日
Function 'quit' is not supported for code generation and the coder.extrinsic directive cannot be applied to 'quit'. Rewrite your code so it does not use 'quit'.
i am getting this error

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


Walter Roberson
Walter Roberson 2020 年 2 月 7 日
https://www.mathworks.com/help/simulink/slref/stopsimulation.html
You could emit an output which indicates whether to stop and connect to a Stop Simulation block
  2 件のコメント
Akshay Math
Akshay Math 2020 年 2 月 7 日
Thank you for your attention sir,
I want this as a part MATLAB function block code
i want to terminate the execution through command

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

カテゴリ

Help Center および File ExchangeSchedule Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by