matlab function block querry

1 vue (au cours des 30 derniers jours)
Akshay Math
Akshay Math le 7 Fév 2020
Commenté : Walter Roberson le 7 Fév 2020
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

Réponses (2)

Bhaskar R
Bhaskar R le 7 Fév 2020
Modifié(e) : Bhaskar R le 7 Fév 2020
Use command exit or quit
  1 commentaire
Akshay Math
Akshay Math le 7 Fév 2020
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

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 7 Fév 2020
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 commentaires
Akshay Math
Akshay Math le 7 Fév 2020
Thank you for your attention sir,
I want this as a part MATLAB function block code
i want to terminate the execution through command

Connectez-vous pour commenter.

Catégories

En savoir plus sur Schedule Model Components dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by