Control "Delay" block by setParam?

3 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by