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 CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by