summaryrefslogtreecommitdiff
path: root/842/CH5/EX5.5/Example5_5.sce
blob: e9ee44b328e9db2f8c29a34ec3bc432f091904e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//clear//
//Example5.5:Discrete Time Fourier Transform:x[n]= cos(nWo)
clear;
clc;
close;
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)