%%Experiment No.5 %Aim:To study and perform fourier transform of CT & DT signal %Name: Anurag R Kados %Roll NO.: EC2162 %Batch No.: A-5 %Class: SY-A(E&TC) %Subject: Signal & System clc; clear all; close all; f1=20; t1=1/f1; N=201; k=0:N-1; x=exp(-0.025*k); x(1)=0.5; X=fft(x); X=fftshift(X); X=t1*X; dw=2*pi*f1/N; w=-pi*f1:dw:pi*f1-dw; subplot(2,2,1); stem(w,abs(X)); subplot(2,2,2); stem(w,angle(X)); N=10 k=0:N-1 x=0.6.^k; X=fft(x); X=fftshift(X); w=-pi:2*pi/N:pi-2*pi/N; subplot(2,2,3); stem(w,abs(X)); subplot(2,2,4); stem(w,angle(X));
N =
10
k =
0 1 2 3 4 5 6 7 8 9