A digital filter is described by difference equation y(n) −2.56y(n −1)+2.22y(n−2)−0.65y(n−3) = x(n)+x(n−3) where x(n) is the input and y(n) is the output. Assume all zero initial conditions. a) Generate the input signal x(n), which is a sinusoid of frequency F1 sampled at Fsamp. Plot five cycles of sinusoidal signal. b) Find the output by implementing the difference equation. c) Reconstruct the signal using formula Xr = also analyze the Sin[π(t−kT)/T] N−1 k=0 x(kT)Sin[π(t − kT)/T] [π(t − kT)/T] [π(t−kT)/T] term interpolation process. d) Downsample the input sinusoidal sequence by a factor of 2. Plot the time-domain signal. e) Plot the spectrum of the downsampled signal in the interval (−π,π). What frequency in Hz does π represent? f) Upsample the input sinusoidal sequence by a factor of 3. Plot the time-domain signal. g) Plot the spectrum of upsampled signal in the interval (−π,π). What frequency in Hz does π represent now?
Comments
Leave a comment