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

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

Community Treasure Hunt

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

Start Hunting!

Translated by