How to replace a Constant block with a From Workspace block programatically?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Peter Babu
am 13 Nov. 2013
Kommentiert: Peter Babu
am 13 Nov. 2013
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 Kommentare
Akzeptierte Antwort
The Matlab Spot
am 13 Nov. 2013
Bearbeitet: The Matlab Spot
am 13 Nov. 2013
Try this... e.g. Model is open, block is named as 'Constant'...
replace_block(bdroot,'Name','Constant', 'built-in/FromWorkspace')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!