MATLAB: Control “Delay” block by setParam

blocksimulink

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!

Best Answer

set_param('untitled/Delay','DelayLength','2')