blob: 508154d16dc80e78f85d35594b5537908baaeec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Determine fourier transform of Given Signal and sketch magnitude and phase spectrum
clc;
clear;
t=0:0.1:15;
a=1;
x=exp(-a*t).*(t>=0);
X=dft(x,-1);
Xmag=abs(X);
subplot(1,2,1)
plot(t,Xmag);
xphase=atan(imag(X),real(X));
subplot(1,2,2)
plot(t,xphase)
|