Unusual set_param error with system
조회 수: 4(최근 30일)
표시 이전 댓글
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
채택된 답변
Titus Edelhofer
2015년 6월 9일
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
추가 답변(0개)
참고 항목
범주
Find more on Programmatic Model Editing in Help Center and File Exchange
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!