summaryrefslogtreecommitdiff
path: root/67/CH4/EX4.22/example422.sce
blob: 32f85afd292eb5f11c2bf0b5d14e50ffff83f679 (plain)
1
2
3
4
5
6
//Example 4.22
//Find DTFT of x[n]=((1/2)^(n-1))u[n-1]
clc;
syms w n;
x=(1/2)^(n-1);
X=symsum(x*exp(-%i*w*n),n,1,%inf);