blob: d7dbca2282e6ae766c3f4d08582addea1421bebb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Example6.19:
//Discrete Time Fourier Transform
clc;
N = 5;
Wo = 2*%pi/N;
W = [-Wo,0,Wo];
XW =[%pi,0,%pi]; //figure
a = gca();
a.y_location ="origin";
a.x_location ="origin";
plot2d3('gnn',W,XW,2);
poly1 = a.children(1).children(1);
poly1.thickness = 3;
xlabel('W');
title('DTFT of cos(nWo)')
disp(Wo)
|