How to programmitcally edit the "Goto Tag" in "From" block in simulink

2 次查看(过去 30 天)
I have a simulink model with multiple Goto blocks. I also have a "From" block in my model that corresponds to one of these "GoTo" blocks, How can I change its "Goto Tag" and "Goto Source"? I want it to get coreesponded to another "GoTo" block.

采纳的回答

Fangjun Jiang
Fangjun Jiang 2023-8-28
get_param(PathToTheBlock,'GotoTag');
set_param(PathToTheBlock,'GotoTag','B')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by