summaryrefslogtreecommitdiff
path: root/1592/CH1
diff options
context:
space:
mode:
Diffstat (limited to '1592/CH1')
-rwxr-xr-x1592/CH1/EX1.1/Example1_1.sce16
-rwxr-xr-x1592/CH1/EX1.1/Fig1_11_2.jpgbin0 -> 5729 bytes
-rwxr-xr-x1592/CH1/EX1.1/Fig1_11_3.jpgbin0 -> 5951 bytes
-rwxr-xr-x1592/CH1/EX1.11/Example1_11.sce38
-rwxr-xr-x1592/CH1/EX1.11/Fig1_11_2.jpgbin0 -> 5729 bytes
-rwxr-xr-x1592/CH1/EX1.11/Fig1_11_3.jpgbin0 -> 5951 bytes
-rwxr-xr-x1592/CH1/EX1.12/Example1_12.sce22
-rwxr-xr-x1592/CH1/EX1.12/Fig1_12_1.jpgbin0 -> 5652 bytes
-rwxr-xr-x1592/CH1/EX1.12/Fig1_12_2.jpgbin0 -> 4870 bytes
-rwxr-xr-x1592/CH1/EX1.13/Example1_13.sce11
-rwxr-xr-x1592/CH1/EX1.13/Fig1_13.jpgbin0 -> 7487 bytes
-rwxr-xr-x1592/CH1/EX1.3.a/Example1_3_a.sce16
-rwxr-xr-x1592/CH1/EX1.3.a/Fig1_3_a.jpgbin0 -> 8368 bytes
-rwxr-xr-x1592/CH1/EX1.3.b/Example1_3b_.sce16
-rwxr-xr-x1592/CH1/EX1.3.b/Fig1_3_b.jpgbin0 -> 9268 bytes
-rwxr-xr-x1592/CH1/EX1.4/Example1_4.sce17
-rwxr-xr-x1592/CH1/EX1.4/Fig1_4.jpgbin0 -> 8787 bytes
-rwxr-xr-x1592/CH1/EX1.5/Example1_5.sce17
-rwxr-xr-x1592/CH1/EX1.5/Fig1_5.jpgbin0 -> 6611 bytes
-rwxr-xr-x1592/CH1/EX1.6/Example1_6.sce15
-rwxr-xr-x1592/CH1/EX1.6/Fig1_6.jpgbin0 -> 5669 bytes
-rwxr-xr-x1592/CH1/EX1.7/Example1_7.sce34
-rwxr-xr-x1592/CH1/EX1.7/Fig1_7_1.jpgbin0 -> 5549 bytes
-rwxr-xr-x1592/CH1/EX1.7/Fig1_7_2.jpgbin0 -> 5777 bytes
24 files changed, 202 insertions, 0 deletions
diff --git a/1592/CH1/EX1.1/Example1_1.sce b/1592/CH1/EX1.1/Example1_1.sce
new file mode 100755
index 000000000..7481ebe25
--- /dev/null
+++ b/1592/CH1/EX1.1/Example1_1.sce
@@ -0,0 +1,16 @@
+//Scilab Code for Example 1.1 of Signals and systems by
+//P.Ramakrishna Rao
+//Determine whether the given signal is periodic or not
+//x(t)=10*(cos(10*pi*t))^2
+clc;
+clear;
+syms t;
+x=10*(cos(10*%pi*t))^2;
+disp(x,'x(t)');
+t=0:0.01:1;
+x=10*(cos(10*%pi*t))^2;
+t=0:0.01:1;
+plot(t,x,'r')
+title('x(t)');
+xlabel('Time in seconds');
+disp('the signal is plotted and it shows it is periodic');
diff --git a/1592/CH1/EX1.1/Fig1_11_2.jpg b/1592/CH1/EX1.1/Fig1_11_2.jpg
new file mode 100755
index 000000000..d98799dce
--- /dev/null
+++ b/1592/CH1/EX1.1/Fig1_11_2.jpg
Binary files differ
diff --git a/1592/CH1/EX1.1/Fig1_11_3.jpg b/1592/CH1/EX1.1/Fig1_11_3.jpg
new file mode 100755
index 000000000..05e2dd3ac
--- /dev/null
+++ b/1592/CH1/EX1.1/Fig1_11_3.jpg
Binary files differ
diff --git a/1592/CH1/EX1.11/Example1_11.sce b/1592/CH1/EX1.11/Example1_11.sce
new file mode 100755
index 000000000..ade4e6a1a
--- /dev/null
+++ b/1592/CH1/EX1.11/Example1_11.sce
@@ -0,0 +1,38 @@
+//Scilab Code for Example 1.11 of Signals and systems by
+//P.Ramakrishna Rao
+//displaying plots for the given signals
+clear;
+clc;
+for t=-3:1:3
+y(t+4)=abs(t+3)*u(t+3)-abs(t+1)*u(t+1)-abs(t-1)*u(t-1)+abs(t-3)*u(t-3);
+end
+t=-3:1:3;
+//for the main given signal
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot(t,y);
+title('Main Signal)');
+dy=0*y;
+for i=1:6
+dy(i)=(y(i+1)-y(i))/1;
+end
+//for the derivative of the given signal
+figure(1);
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d2(t,dy);
+title('Derivative of Signal');
+dy2=0*dy;
+dy2(1)=dy(1)-0;
+for i=1:6
+dy2(i+1)=(dy(i+1)-dy(i))/1;
+end
+//for the impulse response representation or second derivative
+figure(2);
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(t,dy2,-5);
+title('Impulse response representation');
diff --git a/1592/CH1/EX1.11/Fig1_11_2.jpg b/1592/CH1/EX1.11/Fig1_11_2.jpg
new file mode 100755
index 000000000..d98799dce
--- /dev/null
+++ b/1592/CH1/EX1.11/Fig1_11_2.jpg
Binary files differ
diff --git a/1592/CH1/EX1.11/Fig1_11_3.jpg b/1592/CH1/EX1.11/Fig1_11_3.jpg
new file mode 100755
index 000000000..05e2dd3ac
--- /dev/null
+++ b/1592/CH1/EX1.11/Fig1_11_3.jpg
Binary files differ
diff --git a/1592/CH1/EX1.12/Example1_12.sce b/1592/CH1/EX1.12/Example1_12.sce
new file mode 100755
index 000000000..86efa1717
--- /dev/null
+++ b/1592/CH1/EX1.12/Example1_12.sce
@@ -0,0 +1,22 @@
+//Scilab Code for Example 1.12 of Signals and systems by
+//P.Ramakrishna Rao
+clc;
+clear;
+x=-2:1:3;
+y=[-1.5,2,2,1,-1.5,2.5];
+//Plot of x(n)
+plot2d3(x,y,5);
+xtitle ( 'Time Scaling x(n)');
+a = gca(); // get the current axes
+a.x_location = "origin";
+a.y_location = "origin";
+x=-2:1:3;
+y=[0,-1.5,2,-1.5,0,0];
+figure(1);
+//Plot of x(2n)
+plot2d3(x,y,5);
+a = gca(); // get the current axes
+a.x_location = "origin";
+a.y_location = "origin";
+xtitle ( 'Time Scaling x(2n)' );
+
diff --git a/1592/CH1/EX1.12/Fig1_12_1.jpg b/1592/CH1/EX1.12/Fig1_12_1.jpg
new file mode 100755
index 000000000..8d6e9ced3
--- /dev/null
+++ b/1592/CH1/EX1.12/Fig1_12_1.jpg
Binary files differ
diff --git a/1592/CH1/EX1.12/Fig1_12_2.jpg b/1592/CH1/EX1.12/Fig1_12_2.jpg
new file mode 100755
index 000000000..11dfcc118
--- /dev/null
+++ b/1592/CH1/EX1.12/Fig1_12_2.jpg
Binary files differ
diff --git a/1592/CH1/EX1.13/Example1_13.sce b/1592/CH1/EX1.13/Example1_13.sce
new file mode 100755
index 000000000..e5c94cea1
--- /dev/null
+++ b/1592/CH1/EX1.13/Example1_13.sce
@@ -0,0 +1,11 @@
+//Scilab Code for Example 1.13 of Signals and systems by
+//P.Ramakrishna Rao
+clc;
+clear;
+//Discrete-time sequence plot
+clc
+A=10;
+t=0:1/1000:1;
+x=A*sin(2*%pi*100*t);
+q=plot2d3(t,x);
+disp('displaying a function plot on discrete time scale that has a sampling frequency of 1000 samples ps');
diff --git a/1592/CH1/EX1.13/Fig1_13.jpg b/1592/CH1/EX1.13/Fig1_13.jpg
new file mode 100755
index 000000000..4ff94d1ba
--- /dev/null
+++ b/1592/CH1/EX1.13/Fig1_13.jpg
Binary files differ
diff --git a/1592/CH1/EX1.3.a/Example1_3_a.sce b/1592/CH1/EX1.3.a/Example1_3_a.sce
new file mode 100755
index 000000000..5d73e18f9
--- /dev/null
+++ b/1592/CH1/EX1.3.a/Example1_3_a.sce
@@ -0,0 +1,16 @@
+//Scilab Code for Example 1.3(a) of Signals and systems by
+//P.Ramakrishna Rao
+//Determine whether the given signal is periodic or not
+//x(t)=3*cos(0.4*pi*t)+2*sin(0.66*t)
+clc;
+clear;
+syms t;
+x=3*cos(0.4*%pi*t)+2*sin(0.66*t);
+disp(x,'x(t)');
+t=0:1/50:50;
+x=3*cos(0.4*%pi*t)+2*sin(0.66*t);
+t=0:1/50:50;
+plot(t,x);
+title('x(t)');
+xlabel('Time in seconds');
+disp('plotted the signal and shown that it is not periodic and is increasing');
diff --git a/1592/CH1/EX1.3.a/Fig1_3_a.jpg b/1592/CH1/EX1.3.a/Fig1_3_a.jpg
new file mode 100755
index 000000000..374c3e783
--- /dev/null
+++ b/1592/CH1/EX1.3.a/Fig1_3_a.jpg
Binary files differ
diff --git a/1592/CH1/EX1.3.b/Example1_3b_.sce b/1592/CH1/EX1.3.b/Example1_3b_.sce
new file mode 100755
index 000000000..0ffcf8069
--- /dev/null
+++ b/1592/CH1/EX1.3.b/Example1_3b_.sce
@@ -0,0 +1,16 @@
+//Scilab Code for Example 1.3(b) of Signals and systems by
+//P.Ramakrishna Rao
+//Determine whether the given signal is periodic or not
+//x(t)=5*cos((4/3)*t)+3*sin(t)
+clc;
+clear;
+syms t;
+x=5*cos((4/3)*t)+3*sin(t);
+disp(x,'x(t)');
+t=0:1/80:80;
+x=5*cos((4/3)*t)+3*sin(t);
+t=0:1/80:80;
+plot(t,x);
+title('x(t)');
+xlabel('Time in seconds');
+disp('plotted the signal and shown that it is periodic with a period of LCM of 2pi and (2pi/(4/3)');
diff --git a/1592/CH1/EX1.3.b/Fig1_3_b.jpg b/1592/CH1/EX1.3.b/Fig1_3_b.jpg
new file mode 100755
index 000000000..0ac827232
--- /dev/null
+++ b/1592/CH1/EX1.3.b/Fig1_3_b.jpg
Binary files differ
diff --git a/1592/CH1/EX1.4/Example1_4.sce b/1592/CH1/EX1.4/Example1_4.sce
new file mode 100755
index 000000000..9c9d58787
--- /dev/null
+++ b/1592/CH1/EX1.4/Example1_4.sce
@@ -0,0 +1,17 @@
+//Scilab Code for Example 1.4 of Signals and systems by
+//P.Ramakrishna Rao
+//Determine whether the given signal is periodic or not
+//x(t)=cos(7*t)+sin(4*t)
+clc;
+clear;
+syms t;
+x=sin(4*t)+cos(7*t);
+disp(x,'x(t)');
+t=0:1/12:12
+x=sin(4*t)+cos(7*t);
+t=0:1/12:12;
+plot(t,x);
+title('x(t)');
+xlabel('Time in seconds');
+disp('plotted the signal and shown that it is periodic with period of 2pi');
+
diff --git a/1592/CH1/EX1.4/Fig1_4.jpg b/1592/CH1/EX1.4/Fig1_4.jpg
new file mode 100755
index 000000000..d3ffd8c34
--- /dev/null
+++ b/1592/CH1/EX1.4/Fig1_4.jpg
Binary files differ
diff --git a/1592/CH1/EX1.5/Example1_5.sce b/1592/CH1/EX1.5/Example1_5.sce
new file mode 100755
index 000000000..3c8e1df4a
--- /dev/null
+++ b/1592/CH1/EX1.5/Example1_5.sce
@@ -0,0 +1,17 @@
+//Scilab Code for Example 1.5 of Signals and systems by
+//P.Ramakrishna Rao
+//Determine whether the given signal is periodic or not
+//x(t)=cos(t)+sin(sqrt(2)*t)
+clc;
+clear;
+syms t;
+x=cos(t)+sin(sqrt(2)*t);
+disp(x,'x(t)');
+for t=0:1:100;
+x(t+1)=cos(t)+sin(sqrt(2)*t);
+end
+t=0:1:100;
+plot(t,x);
+title('x(t)');
+xlabel('Time in seconds');
+disp('plotted the signal and shown that it is not periodic');
diff --git a/1592/CH1/EX1.5/Fig1_5.jpg b/1592/CH1/EX1.5/Fig1_5.jpg
new file mode 100755
index 000000000..0eec19979
--- /dev/null
+++ b/1592/CH1/EX1.5/Fig1_5.jpg
Binary files differ
diff --git a/1592/CH1/EX1.6/Example1_6.sce b/1592/CH1/EX1.6/Example1_6.sce
new file mode 100755
index 000000000..9ce6f1875
--- /dev/null
+++ b/1592/CH1/EX1.6/Example1_6.sce
@@ -0,0 +1,15 @@
+//Scilab Code for Example 1.6(i) of Signals and systems by
+//P.Ramakrishna Rao
+//Determine whether the given signal is periodic or not
+clc;
+clear;
+
+n=0:1:10;
+x(n+1)=2*sin(0.8*%pi*n);
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+n=0:1:10;
+plot2d3(n,x,9);
+title('x(n)');
+disp('ploting the signal and showing that it is periodic with period of 5');
diff --git a/1592/CH1/EX1.6/Fig1_6.jpg b/1592/CH1/EX1.6/Fig1_6.jpg
new file mode 100755
index 000000000..2ea72caeb
--- /dev/null
+++ b/1592/CH1/EX1.6/Fig1_6.jpg
Binary files differ
diff --git a/1592/CH1/EX1.7/Example1_7.sce b/1592/CH1/EX1.7/Example1_7.sce
new file mode 100755
index 000000000..e6f31fdfa
--- /dev/null
+++ b/1592/CH1/EX1.7/Example1_7.sce
@@ -0,0 +1,34 @@
+//Scilab Code for Example 1.7 of Signals and systems by
+//P.Ramakrishna Rao
+clear;
+clc;
+n=1;
+for t=-10:0.1:10;
+ //Function for Even signal
+ y1(n)=0.5*(exp(-t)*u(t)+exp(t)*u(-t));
+ n=n+1;
+end
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+t=-10:0.1:10;
+//Plot of Even Signal
+plot(t,y1);
+title('y1(t)');
+xlabel('Time in seconds');
+n=1;
+for t=-1:0.01:1;
+ //Function for Odd signal
+ y2(n)=0.5*(exp(-t)*u(t)-exp(t)*u(-t));
+ n=n+1;
+end
+figure(1);
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+t=-1:0.01:1;
+//Plot of Odd Signal
+plot(t,y2)
+disp('plotted the signal both in even and odd forms');
+title('y2(t)');
+xlabel('Time in seconds');
diff --git a/1592/CH1/EX1.7/Fig1_7_1.jpg b/1592/CH1/EX1.7/Fig1_7_1.jpg
new file mode 100755
index 000000000..24d270db9
--- /dev/null
+++ b/1592/CH1/EX1.7/Fig1_7_1.jpg
Binary files differ
diff --git a/1592/CH1/EX1.7/Fig1_7_2.jpg b/1592/CH1/EX1.7/Fig1_7_2.jpg
new file mode 100755
index 000000000..997393040
--- /dev/null
+++ b/1592/CH1/EX1.7/Fig1_7_2.jpg
Binary files differ