Randomize delay in Transport Delay Block

조회 수: 3 (최근 30일)
Giovanni Delnevo
Giovanni Delnevo 2017년 3월 23일
댓글: Giovanni Delnevo 2017년 3월 31일
I'm using the Transport Delay block to delay a signal by a fixed amount of time. Is there a way to randomize this fixed amount of time? For examples, delay the input signal by a time that goes from 1 to 2 seconds?

채택된 답변

Jyotish Robin
Jyotish Robin 2017년 3월 31일
Hi Giovanni!
I understand that you wish to randomize the delay caused by the Transport Delay Block. In the Transport Delay block, you can see a parameter 'Time delay'. You could use a random number generating function to specify the random delay you would like to have.
For example, if you keep the value of 'Time delay' as 'rand' it will return a single uniformly distributed random number in the interval (0,1) for the delay .
You can read more about 'rand' function here: http://www.mathworks.com/help/matlab/ref/rand.html
I hope the above suggestions help!
Regards,
Jyotish
  댓글 수: 1
Giovanni Delnevo
Giovanni Delnevo 2017년 3월 31일
Hi Jyotish! Thank you! That's perfect for me!
Regards, Giovanni

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by