How can I change an initial/constant value in a simulink model
73 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alfried
el 6 de En. de 2014
Editada: Vincent Nicolazzo
el 6 de Mzo. de 2019
Hey together,
I am receiving two signal from an external source into simulink. depending on the value of each signal I need to change some constant variable in my model, but I dont know how to do it.
Another thing is, that I have to rewrite a constant variable in a user defined matlab-function, but I dont know how to do it as well.
I hope, you can help me out.
greetings
2 comentarios
Respuesta aceptada
Más respuestas (1)
Vincent Nicolazzo
el 6 de Mzo. de 2019
Editada: Vincent Nicolazzo
el 6 de Mzo. de 2019
Check out this link. It's not the best method but it worked for me. I would run my simullation and change the value of the constant in the command window.
Be sure to change the constant's sample time to anything but inf
0 comentarios
Ver también
Categorías
Más información sobre Event Functions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!