Control "Delay" block by setParam?

2 ビュー (過去 30 日間)
Felipe Michelin
Felipe Michelin 2015 年 6 月 27 日
編集済み: Felipe Michelin 2015 年 6 月 27 日
Hello!
I would like to know if it is possible set a value to the Time length parameter in delay block by a .m file, I was looking some time ago and I couldn't find!
Thank you!

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 27 日
set_param('untitled/Delay','DelayLength','2')
  2 件のコメント
Felipe Michelin
Felipe Michelin 2015 年 6 月 27 日
編集済み: Felipe Michelin 2015 年 6 月 27 日
Azzi! It worked. Thank you so much!
Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 27 日
yes you can
v=2
set_param('untitled/Delay','DelayLength',num2str(v))

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by