Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Executing a Simulink function from a Matlab function in Stateflow

2 visualizaciones (últimos 30 días)
Jim Clay
Jim Clay el 23 de Nov. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a working Stateflow Chart that executes a number of Matlab functions. I would like to convert some of those functions to Simulink functions, but they usually have some "if" control structures that are more easily done in Matlab than Simulink. The stuff inside the "if"s, though, would translate to Simulink very nicely.
Is it possible to execute a Simulink function from a Matlab function in a Stateflow Chart? If so, how do you do it?
Thanks for your time.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Nov. de 2012
You can use Simulink Function (Graphic function available in your chart)
  1 comentario
Kaustubha Govind
Kaustubha Govind el 26 de Nov. de 2012
Editada: Kaustubha Govind el 26 de Nov. de 2012
Also, see this blog post on constructing an if-else semantic in Simulink.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by