summaryrefslogtreecommitdiff
path: root/692/CH3/EX3.10/P3_10.sce
blob: 5bcfc04ab4a058bae36770afd7a4b346885b672a (plain)
1
2
3
4
5
6
7
8
9
10
//EXAMPLE 3.10
// DTFT of a sequence
clc;
clear;
syms a n M w;
x=a^n;
X=nusum(x*(exp(-%i*w*n)),n,0,M-1)
disp(limit(X),'The DTFT of the given sequence, X = ')