I still got error: "Invalid setting in Constant block 'Constant' for parameter 'Value'. 'x' is in the place of the 'constant' block where the numeric value is given.
Error in Using set_param
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've not been able to set the consant in the "constant" block. I used: set_param('dummy/Constant','x',50) but kept getting eroor "Constant block does not have a parameter named 'x'". 'dummy' is the model name.
Thanks.
0 commentaires
Réponse acceptée
Plus de réponses (1)
Brian B
le 14 Juil 2014
Try
set_param('dummy/Constant','Value','50')
Note that the value is also a string.
4 commentaires
Voir également
Catégories
En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!