How to replace a Constant block with a From Workspace block programatically?
2 ビュー (過去 30 日間)
古いコメントを表示
How to replace a Constant block with a From Workspace block programatically? I have tried with replace_block but shows an error InvalidBlockHandle . If to replace the same constant block with inport its working fine .
0 件のコメント
採用された回答
The Matlab Spot
2013 年 11 月 13 日
編集済み: The Matlab Spot
2013 年 11 月 13 日
Try this... e.g. Model is open, block is named as 'Constant'...
replace_block(bdroot,'Name','Constant', 'built-in/FromWorkspace')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Schedule Model Components についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!