Unusual set_param error with system
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Adam Keller
le 9 Juin 2015
Réponse apportée : Titus Edelhofer
le 9 Juin 2015
In the image I have attached, you can see if I type gcb, set_param works, but If I type in the exact same path, I get an error. Even in the error, its says:
Invalid Simulink object name: R_edge_detect/Subsystem/Filt
This matches the object that is identified with the gcb command... Help!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151013/image.png)
0 commentaires
Réponse acceptée
Titus Edelhofer
le 9 Juin 2015
Hi,
note, that there is a line break. This should work:
set_param(sprintf('R_edge_detect/Subsystem\n/Filt'), 'SampleTime', 'Ts')
Or: remove from the block the line break ;-).
Titus
0 commentaires
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!