blob: 9156ad5868f6f9065c4daf47351e7b4ef0cbc634 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Example 4.6
//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
clear;
clc ;
close ;
syms n z;
f1=1;
F1= symsum (f1*(z^(-n)),n ,-%inf, -1 );
f2=(0.5)^n;
F2= symsum (f2*(z^(-n)),n ,0,%inf );
//Display the result in command window
F=F1+F2;
disp (F,"Z-transform of f(n) is:");
disp('ROC is the Region 0.5 < mod(z) <1 ')
|