diff options
Diffstat (limited to '1592/CH2/EX2.21/Example_2_21.sce')
-rwxr-xr-x | 1592/CH2/EX2.21/Example_2_21.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1592/CH2/EX2.21/Example_2_21.sce b/1592/CH2/EX2.21/Example_2_21.sce new file mode 100755 index 000000000..2c3dcc584 --- /dev/null +++ b/1592/CH2/EX2.21/Example_2_21.sce @@ -0,0 +1,15 @@ +//Scilab Code for Example 2.21 of Signals and systems by
+//P.Ramakrishna Rao
+//Z- transform of a^n u(n)
+clear;
+clc ;
+close ;
+syms a n z;
+x1 =1/2;
+x2=1/3;
+X1= symsum (x1*(z^(-n)),n ,0, %inf );
+X2= symsum (x2*(z^(-n)),n ,0, %inf );
+X=X1+X2;
+//Display the result
+disp (X,"Z-transform of u(n) is:");
+disp('ROC is the Region |z|> 1/2');
|