Lab4
Introduction
Experiment Objective
- To review the signals with the Continuous-Time Fourier transform
- To calculate CTFT of signals by hand and MATLAB
- To learn impulse responses of differential equations (partial fraction expansion)
- To learn and master MATLAB function residue, lsim
- To learn the signal in dash/dot to represent Morse Code
Experiment Requirements
- Master the definition and calculation of Continuous-Time Fourier Transform
- Learn and solve impulse response of differential equations by function freqs
Lab results & Analysis:
4.2 Numerical Approximation to the Continuous-Time Fourier Transform
Basic Problems:
(a)
(b)——(e)
%=======4.2======
%=======(b)======
tau = 0.01;
T = 10;
N = T/tau;
t = [0:tau:T-tau];
y = exp(-2.*abs(t-5));
%=======(c)======
Y = fftshift(tau*fft(y));
%=======(d)======
w = -(pi/tau)+(0:N-1)*(2*pi/(N*tau));
%=======(e)======
X = exp(1i*5*w).*Y;