Control "Delay" block by setParam?

4 views (last 30 days)
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!

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 27 Jun 2015
set_param('untitled/Delay','DelayLength','2')
  2 Comments
Felipe Michelin
Felipe Michelin on 27 Jun 2015
Edited: Felipe Michelin on 27 Jun 2015
Azzi! It worked. Thank you so much!
Azzi Abdelmalek
Azzi Abdelmalek on 27 Jun 2015
yes you can
v=2
set_param('untitled/Delay','DelayLength',num2str(v))

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!