Unusual set_param error with system
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Adam Keller
el 9 de Jun. de 2015
Respondida: Titus Edelhofer
el 9 de Jun. de 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 comentarios
Respuesta aceptada
Titus Edelhofer
el 9 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!