How can I change an initial/constant value in a simulink model
93 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Vincent Nicolazzo
2019-3-6
编辑:Vincent Nicolazzo
2019-3-6
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!