My code is (inside embedded MATLAB function):
function y=example(t)
y=rand(1,1)*t;
t
is digital clock input (simulation block) with sampling time (1/1e6)
. The y
also generates a random number sequence (uniform distribution) in 1/1e6
sampling time. But I need the sampling time output y
should be in (1/1e3)
time.
How can I do it?