필터 지우기
필터 지우기

matlab function block querry

조회 수: 2 (최근 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 CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by