time2delay converts times to delays for a non uniform signal. Useful in particular for the initialization of a non uniform signal.
delay = time2delay(time) delay = time2delay(time,t0)
||Times. Row vector.|
||Initial time (of the first delay). Scalar. Optional.|
||Delays. Row vector.|
t = 10; % signal duration t0 = 1.; % initial time nbsamples = 10; % number of samples times = t0+t*random('unif',0,1,1,nbsamples); times=sort(times); % time samples delay=time2delay(times,t0); % delay samplesinclude "V2.0.inc"; include "author.inc"; include "footer.inc"; ?>