Lab-Assignment 4
Lab-Assignment 4
Yidnekachew S. 2024
Frequency Content
Fourier Series (periodic signals)
Time Frequency
Domain Domain
Fourier Transform
dt = .05;
t = -10:dt:10;
x = sin(5*t);
X = fft(x)*dt;
X = fftshift(X);
Nw = length(X);
k = -(Nw-1)/2:1:(Nw-1)/2;
w = k*2*pi/Nw/dt; %rad./sample
plot(w,abs(X)); grid on;
Frequency response of the continuous-time LTI
system described by the differential equation:
a0 = 121868727358.1180, a1 = 48890434.5196
a2 = 6209.9310, a3 = 1, b0 = 121868727358.1180;
a0 = 121868727358.1180;
a1 = 48890434.5196;
a2 = 6209.9310;
a3 = 1;
a = [a3 a2 a1 a0];
b0 = 121868727358.1180;
b = [0 0 0 b0];
[h,w] = freqs(b,a);
plot(w,abs(h)); grid on;
Example
Let x1(1) = sin(5t) and x2(t) = sin(7t), −10 ≤ t ≤ 10, Use matlab to find the
Fourier transform,