how can i give m-file output to simulink model as input
94 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i am trying to link a m-file out put to a simulink model as input
0 comentarios
Respuestas (3)
Azzi Abdelmalek
el 10 de Dic. de 2012
What do you mean by m-file output? If it's a constant variable use TAB's answer, If it's a signal, use from file block, else, explain it.
1 comentario
Ajay Kumar
el 28 de Ag. de 2016
Editada: Ajay Kumar
el 28 de Ag. de 2016
Hie Azzi, I have a problem I have a Matlab code for random road profile which is generated from an equation..with this code I'm able to generate random road profile but, I couldn't give it as an input road for half car Simulink suspension mode. here is the code:
TAB
el 10 de Dic. de 2012
Editada: TAB
el 10 de Dic. de 2012
- Save your m-file output to base workspace in a variable say MayVar.
- Put a constant block in simulink model and put value = MyVar.
- Simulate your model. Constant block will the value from base workspace and pass pass it to following blocks.
0 comentarios
Muruganandham Subramanian
el 10 de Dic. de 2012
Editada: Muruganandham Subramanian
el 10 de Dic. de 2012
Your question is already answered, First check and ask question..
0 comentarios
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!