Running m file from simulink

I have a mile in which i have to call from sinulink,the m file willl plot a graph ,please tell how to call m file from simulink without using from workspace block

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Dic. de 2012

4 votos

You can use callback in simulink, fellow thhese steps
  1. right click on your simulink model
  2. click on model properties
  3. click on callbacks
  4. click on stop fcn
  5. type your m filename

Más respuestas (1)

Mohammad Ali Sharifian
Mohammad Ali Sharifian el 24 de Mzo. de 2024

0 votos

If the m-file is just for plotting, I recommend pasting your m-file codes in: model properties>callbacks>stop fcn
This way when you run your simulink, the results will be plotted automatically.

Categorías

Etiquetas

Preguntada:

Pat
el 2 de Dic. de 2012

Respondida:

el 24 de Mzo. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by