summaryrefslogtreecommitdiff
path: root/830/CH3/EX3.2.1/signal3.sce
blob: 536e354dfa8e9dc2b19e39e08eb8e0e55df955f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Graphical//
//Example 3.2.1
//Z transform of x[n] = 3.2^n.u[n]-4.3^n.u[n]
clear;
close;
clc;
syms n z;
x1=(2)^(n)
X1=symsum(3*x1*(z^(-n)),n,0,%inf)
x2=(3)^(n)
X2=symsum(4*x2*(z^(-n)),n,0,%inf)
X = (X1-X2)
disp(X,"ans=")