フィルターのクリア

Unusual set_param error with system

1 回表示 (過去 30 日間)
Adam Keller
Adam Keller 2015 年 6 月 9 日
回答済み: Titus Edelhofer 2015 年 6 月 9 日
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!

採用された回答

Titus Edelhofer
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 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by