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일

0 개 추천

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일

0 개 추천

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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Block Libraries에 대해 자세히 알아보기

질문:

2020년 2월 7일

댓글:

2020년 2월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by