matlab function block querry

1 visualización (últimos 30 días)
Akshay Math
Akshay Math el 7 de Feb. de 2020
Comentada: Walter Roberson el 7 de Feb. de 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

Respuestas (2)

Bhaskar R
Bhaskar R el 7 de Feb. de 2020
Editada: Bhaskar R el 7 de Feb. de 2020
Use command exit or quit
  1 comentario
Akshay Math
Akshay Math el 7 de Feb. de 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

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 7 de Feb. de 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 comentarios
Akshay Math
Akshay Math el 7 de Feb. de 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

Iniciar sesión para comentar.

Categorías

Más información sobre Schedule Model Components en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by