set_param() in Repeating Sequence / Simulink doesn't work
显示 更早的评论
Hello, Today I tried to change the y-Parameter of a repeating-Sequence-Block during Simulation.
rs_y1 = 0:200;
set_param('RS_test/rs','rep_seq_y','rs_y1');
I defined rs_y1 as global variable. The strange thing is that I don't get any errors or warnings (I can even see that the little graph on the repeating-Sequence-block changes). Can someone explain why the new y-Parameters aren't used during the simulation? And maybe there is a solution?
采纳的回答
更多回答(1 个)
Ronron
2015-6-9
0 个投票
1 个评论
Drew Davis
2015-6-9
For edit fields inside a block mask, text entries are interpreted as strings
类别
在 帮助中心 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!