Sampling and Reconstructing Signals In Matlab -
i have continuous signal :
x(t) = cos(100*pi*t)+cos(200*pi*t)+sin(500*pi*t) i must apply standard reconstruction of sampling theorem f=500hz
then have repeat it, f1>f
any guys? i'm confused signals , matlab!!
sampling @ f=500hz means taking samples every t = 1/f = 1/500 = 2ms.
i don't know units of t vector , length not specified.
let's assume length 1 second , units in us.
you can create sampling vector tsample every 2ms (which corresponds f=500hz) , value of signal @ points.
freq = 500; period = 1/freq * 1000000;       % convert tsample = 0:period:1000000;     % samples 0 1 second every 2000us sampled_signal = x(tsample); pd: school exercise have see happens if don't satisfy nyquist criteria. try different sampling frequencies , see happens if don't sample fast enough.
Comments
Post a Comment