How to replace a Constant block with a From Workspace block programatically?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Peter Babu
le 13 Nov 2013
Commenté : Peter Babu
le 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 commentaires
Réponse acceptée
The Matlab Spot
le 13 Nov 2013
Modifié(e) : The Matlab Spot
le 13 Nov 2013
Try this... e.g. Model is open, block is named as 'Constant'...
replace_block(bdroot,'Name','Constant', 'built-in/FromWorkspace')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!