Can I set the value of variable in From block using in.setBlockParameter function???
显示 更早的评论
Can I set the value of variable in from block (goto/from) using in.setBlockParameter function ??? I am triying to set initial value for DDPG training.
回答(1 个)
Amish
2025-3-25
0 个投票
Hi Kapil,
I see that you are trying to set the value of variable in From block.
No, you cannot directly set the value of a variable in a From block (part of the Goto/From mechanism) using the setBlockParameter function because the From block does not store parameters; it only retrieves values from a corresponding Goto block.
For more information on the same, please refer to the documentation links below:
Hope this helps.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!