diff options
Diffstat (limited to '1592/CH9/EX9.6/example_9_6.sce')
-rwxr-xr-x | 1592/CH9/EX9.6/example_9_6.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/1592/CH9/EX9.6/example_9_6.sce b/1592/CH9/EX9.6/example_9_6.sce new file mode 100755 index 000000000..57cd4a8a9 --- /dev/null +++ b/1592/CH9/EX9.6/example_9_6.sce @@ -0,0 +1,26 @@ +//Scilab Code for Example 9.6 of Signals and systems by
+//P.Ramakrishna Rao
+clc;
+clear;
+clear z x y t T;
+A=1;
+n=1;
+wo=2*%pi;
+theta=%pi/2;
+for t=-5:0.01:5;
+ x(n)=A*cos(wo*t+theta);
+ n=n+1;
+end
+t=-5:0.01:5;
+plot(t,x);
+title('x(t)');
+n=1;
+for T=-5:0.1:5;
+ z(n)=(A^2/2)*cos(wo*T);
+ n=n+1;
+end
+figure(1);
+T=-5:0.1:5;
+plot(T,z);
+title('Rxx(T)');
+xlabel('t in seconds')
|