Unusual set_param error with system
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Adam Keller
il 9 Giu 2015
Risposto: Titus Edelhofer
il 9 Giu 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!
0 Commenti
Risposta accettata
Titus Edelhofer
il 9 Giu 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Programmatic Model Editing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!