MATLAB code is given below in bold letters.
clc;
close all;
clear all;
L = 512;
fs = 1.5e3;
Ts = 1/fs;
t = 0:1/fs:1/fs*(L-1);
x = cos(2*pi*450*t);
% DTFT of x[n]
w = -pi:0.01:pi;
n = 0:511;
for k = 1:length(w)
X_c(k) = sum(x.*exp(-1j*w(k)*n));
end
figure;
subplot(211);plot(w,abs(X_c));grid;title('Magnitude DTFT');
xlabel('w');ylabel('Amplitude');
subplot(212);plot(w,angle(X_c)*57.3);grid;title('Phase
DTFT');
xlabel('w');ylabel('degrees');
% DFT of x[n]
X = fftshift(fft(x,512));
L = length(X);
figure;
subplot(211);plot(-L/2:L/2-1,abs(X));grid;title('Magnitude
DFT');
xlabel('k');ylabel('Amplitude');
subplot(212);plot(-L/2:L/2-1,angle(X)*57.3);grid;title('Phase
DFT');
xlabel('k');ylabel('degrees');
6. Let Xc(r) = cos 2π450t. This signal is sampled with f, = 1 .5kHz: x[n]...
Consider an analog signal x(t) = 2 cos(2π600t). The signal is sampled at a rate 3000 samples per second and 20 samples are saved to memory. Sketch the magnitude of the length 20 DFT of the sampled data. For credit, clearly label axes, and exactly sketch the magnitudes (if you connect points in a line drawing, rather than a “stem” plot, then clearly mark the points themselves).
Signal xo(t) 5 cos (200π1+ 품 ) + 4 sin (300π) is sampled at a rate of Fs = 1 kHz to obtain the discrete-time signal x[n]. (a) Determine the spectrum X(ej ) of x[n] and plot its magnitude as a function of ω rad sam in tad and as a function of F in Hz. Explain whether the original signal xe(t) can be recovered from xln]. (b) Repeat part (a) for 500 Hz. (c) Repeat part (a) for 100...
Digital Signal Processing DFT Consider a speech signal x() that has the following frequency spectrum: xga) 1 + cos( -/100 a) Select appropriate values of N and T that will help us carry out DFT-based spectral analysis of this signal x401@) 800 such that the continuous-time frequencies are sampled no farther than 10 Hz apart. b) Ignore the issue of spectral leakage; under this assumption, provide a closed-form expression for the DFT of the signal using the values selected in...
3. Signal xe)8+12e07eo+)is sampled periodically with the rate j20T (-1) F Hz to obtain the discrete-time signal x[n]. For each of the following sampling rates in Hz, determine the spectrum X(etF/F of xn and plot its magnitude and phase as a function of F in Hz. Explain whether xe(f) can be recovered fromx[n]. (a) F-50, (b) F-20, (c) F 10. 3. Signal xe)8+12e07eo+)is sampled periodically with the rate j20T (-1) F Hz to obtain the discrete-time signal x[n]. For each...
The function x(t)=cos(2, where f is the sinusoidal frequency, sampled by replacing t with nT, where T is the sampling period and n is an integer. The results is the sequence x[n]=cos(2If f=1 MHz=1,000,000, and T is 0.1 microseconds. Write expression for x[n]. Plot x[n] over -8 < n < 8
MATLAB Fourier transform. Suppose that a signal x(t) is sampled with sampling frequency fs =100Hz. The sequence x[n] obtained after the sampling is given below: Take the DFT of the sampled sequence and plot its magnitude and phase. What is the frequency resolution (Δf) of your plot? N= 20, 100 Hz N= 20, 100 Hz
(a) The signal x(t) 3 cos (2n404 t + π/4) + cos(2n660t-n/5) is sampled at 20kHz. How many samples would be stored after 60 ms? (b) If x(t) = 4 cos(2π250t + 2n/7), what is the period of this signal? (c) For CDs, the sampling rate is 44,100 samples per second. How often (in seconds) must the ADC sample the signal? (a) The signal x(t) 3 cos (2n404 t + π/4) + cos(2n660t-n/5) is sampled at 20kHz. How many samples...
Suppose that r(l) is a band-limited signal with the bandwidth W. Suppose that we sampled this signal with the sainpling interval T, to generate the sample sequence 1 TLI suppose that 2n/T is larger than the Nyquist rate 2W Given rn, we reconstructed a conius time signal ( using the zero-order-hold method. In other words, rr(l) n for L E [nT, (n +1)T;). In the last lecture, we derived that where s(), as usual, denotes the continuous time representation of...
Problem 3: Let f: X -> R, XC R2, be given by f(x, y)n(x 2y 1), V(r,y) e X Find the maximal domain X and write the second-order Taylor polynomial for f around the point (2,1) E X. (6 points) Problem 3: Let f: X -> R, XC R2, be given by f(x, y)n(x 2y 1), V(r,y) e X Find the maximal domain X and write the second-order Taylor polynomial for f around the point (2,1) E X. (6 points)
Please can you solve it using MATLAB. (1) Generate random signals [n] and hn, each of length N, and measure the time it takes to compute the linear convolution of r[n using the linear convolution definition and using the FFT method . Plot a graph of the results for N 104 to 10 in steps of 10. (2) Consider the signal x[n]-cos(0.3n),。£11S 100. Generate a plot of: ·The magnitude and phase of the DTFT of x[n] for 0 2π The...