From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 162/CH1/EX1.1/example11.jpg | Bin 0 -> 22177 bytes 162/CH1/EX1.1/example11.sce | 28 ++++++++++++++++++++++++++++ 162/CH1/EX1.1/example11_a.jpg | Bin 0 -> 40076 bytes 162/CH1/EX1.11.b/example111b.sce | 16 ++++++++++++++++ 162/CH1/EX1.12.b/example112b.sce | 31 +++++++++++++++++++++++++++++++ 162/CH1/EX1.15.a/example115_a.jpg | Bin 0 -> 23273 bytes 162/CH1/EX1.15.a/example115a.sce | 7 +++++++ 162/CH1/EX1.15.b/example115_b.jpg | Bin 0 -> 24775 bytes 162/CH1/EX1.15.b/example115b.sce | 7 +++++++ 162/CH1/EX1.15.c/example115_c.jpg | Bin 0 -> 26236 bytes 162/CH1/EX1.15.c/example115c.sce | 7 +++++++ 162/CH1/EX1.15.d/example115_d.jpg | Bin 0 -> 28850 bytes 162/CH1/EX1.15.d/example115d.sce | 7 +++++++ 162/CH1/EX1.15.e/example115_e.jpg | Bin 0 -> 27302 bytes 162/CH1/EX1.15.e/example115e.sce | 7 +++++++ 162/CH1/EX1.19.a/example119a.sce | 7 +++++++ 162/CH1/EX1.19.b/example119b.sce | 7 +++++++ 162/CH1/EX1.19.c/example119c.sce | 7 +++++++ 162/CH1/EX1.3.a/example13a.sce | 10 ++++++++++ 162/CH1/EX1.3.b/example13b.sce | 9 +++++++++ 162/CH1/EX1.4/example14.jpg | Bin 0 -> 11839 bytes 162/CH1/EX1.4/example14.sce | 23 +++++++++++++++++++++++ 162/CH1/EX1.4/example14_a.jpg | Bin 0 -> 23667 bytes 162/CH1/EX1.5/example15.sce | 9 +++++++++ 162/CH1/EX1.6/example16.jpg | Bin 0 -> 14844 bytes 162/CH1/EX1.6/example16.sce | 12 ++++++++++++ 162/CH1/EX1.8.a/example18_a.jpg | Bin 0 -> 19926 bytes 162/CH1/EX1.8.a/example18a.sce | 9 +++++++++ 162/CH1/EX1.9.a/example19a.sce | 14 ++++++++++++++ 162/CH1/EX1.9.b/example19b.sce | 14 ++++++++++++++ 162/CH1/EX1.9.c/example19c.sce | 14 ++++++++++++++ 31 files changed, 245 insertions(+) create mode 100755 162/CH1/EX1.1/example11.jpg create mode 100755 162/CH1/EX1.1/example11.sce create mode 100755 162/CH1/EX1.1/example11_a.jpg create mode 100755 162/CH1/EX1.11.b/example111b.sce create mode 100755 162/CH1/EX1.12.b/example112b.sce create mode 100755 162/CH1/EX1.15.a/example115_a.jpg create mode 100755 162/CH1/EX1.15.a/example115a.sce create mode 100755 162/CH1/EX1.15.b/example115_b.jpg create mode 100755 162/CH1/EX1.15.b/example115b.sce create mode 100755 162/CH1/EX1.15.c/example115_c.jpg create mode 100755 162/CH1/EX1.15.c/example115c.sce create mode 100755 162/CH1/EX1.15.d/example115_d.jpg create mode 100755 162/CH1/EX1.15.d/example115d.sce create mode 100755 162/CH1/EX1.15.e/example115_e.jpg create mode 100755 162/CH1/EX1.15.e/example115e.sce create mode 100755 162/CH1/EX1.19.a/example119a.sce create mode 100755 162/CH1/EX1.19.b/example119b.sce create mode 100755 162/CH1/EX1.19.c/example119c.sce create mode 100755 162/CH1/EX1.3.a/example13a.sce create mode 100755 162/CH1/EX1.3.b/example13b.sce create mode 100755 162/CH1/EX1.4/example14.jpg create mode 100755 162/CH1/EX1.4/example14.sce create mode 100755 162/CH1/EX1.4/example14_a.jpg create mode 100755 162/CH1/EX1.5/example15.sce create mode 100755 162/CH1/EX1.6/example16.jpg create mode 100755 162/CH1/EX1.6/example16.sce create mode 100755 162/CH1/EX1.8.a/example18_a.jpg create mode 100755 162/CH1/EX1.8.a/example18a.sce create mode 100755 162/CH1/EX1.9.a/example19a.sce create mode 100755 162/CH1/EX1.9.b/example19b.sce create mode 100755 162/CH1/EX1.9.c/example19c.sce (limited to '162/CH1') diff --git a/162/CH1/EX1.1/example11.jpg b/162/CH1/EX1.1/example11.jpg new file mode 100755 index 000000000..83f8f1fae Binary files /dev/null and b/162/CH1/EX1.1/example11.jpg differ diff --git a/162/CH1/EX1.1/example11.sce b/162/CH1/EX1.1/example11.sce new file mode 100755 index 000000000..e65433179 --- /dev/null +++ b/162/CH1/EX1.1/example11.sce @@ -0,0 +1,28 @@ +//Example1.1 +clc; +t=0:0.01:9; +A=0:4/900:4; +for i=1:length(t) + if t(i)<3 then + x(i)=A(i)*t(i); + else + x(i)=0 + end +end +t1=t+3; +subplot(2,2,1) +plot(t1,x); +xtitle('x(t-3)'); +subplot(2,2,2) +plot(4*t,x); +xtitle('x(t/4)'); +subplot(2,2,3) +plot(t/3,x); +xtitle('x(3t)'); +subplot(2,2,4) +t2=-9:0.01:0 +plot(t2,x($:-1:1)); +xtitle('x(-t)'); +figure +plot(t,x); +xtitle('x(t)'); \ No newline at end of file diff --git a/162/CH1/EX1.1/example11_a.jpg b/162/CH1/EX1.1/example11_a.jpg new file mode 100755 index 000000000..48f185518 Binary files /dev/null and b/162/CH1/EX1.1/example11_a.jpg differ diff --git a/162/CH1/EX1.11.b/example111b.sce b/162/CH1/EX1.11.b/example111b.sce new file mode 100755 index 000000000..256d554fe --- /dev/null +++ b/162/CH1/EX1.11.b/example111b.sce @@ -0,0 +1,16 @@ +//Example 1.11b +//Determine whether the following signal is time invariant or not +clc; +n0=2; +N=10; +for n=1:N + x(n)=n; + y(n)=n*x(n); +end +inputshift=x(N-n0); +outputshift=y(N-n0); +if(inputshift==outputshift) + disp('THE GIVEN SYSTEM IS TIME INVARIANT') +else + disp('THE GIVEN SYSTEM IS TIME VARIANT'); +end \ No newline at end of file diff --git a/162/CH1/EX1.12.b/example112b.sce b/162/CH1/EX1.12.b/example112b.sce new file mode 100755 index 000000000..263477ffb --- /dev/null +++ b/162/CH1/EX1.12.b/example112b.sce @@ -0,0 +1,31 @@ +//Example 1.12b +//Determine whether the system is linear or not +clc; +x1=[1,1,1,1] +x2=[2,2,2,2] +a=1 +b=1 +for n=1:length(x1) + x3(n)=a*x1(n)+b*x2(n) +end +for n=1:length(x1) + y1(n)=x1(n)^2 + y2(n)=x2(n)^2 + y3(n)=x3(n)^2 +end +for n=1:length(y1) + z(n)=a*y1(n)+b*y2(n) +end +count=0 +for n=1:length(y1) + if(y3(n)==z(n)) + count=count+1; + end +end +if(count==length(y3)) +disp('It satisfy the superposition principle'); +disp('THE GIVEN SYSTEM IS LINEAR '); +else + disp('It does not satisfy superposition principle '); + disp('THE GIVEN SYSTEM IS NON LINEAR'); +end \ No newline at end of file diff --git a/162/CH1/EX1.15.a/example115_a.jpg b/162/CH1/EX1.15.a/example115_a.jpg new file mode 100755 index 000000000..72551e96c Binary files /dev/null and b/162/CH1/EX1.15.a/example115_a.jpg differ diff --git a/162/CH1/EX1.15.a/example115a.sce b/162/CH1/EX1.15.a/example115a.sce new file mode 100755 index 000000000..8583bfa75 --- /dev/null +++ b/162/CH1/EX1.15.a/example115a.sce @@ -0,0 +1,7 @@ +//Example 1.15a +//Check whether the given signal is periodic or not +clc; +t=-10:0.01:10; +y=cos(t+(%pi/3)); +plot(t,y); +disp('Plot shows that the given signal is periodic with period 2*%pi'); \ No newline at end of file diff --git a/162/CH1/EX1.15.b/example115_b.jpg b/162/CH1/EX1.15.b/example115_b.jpg new file mode 100755 index 000000000..b5691b969 Binary files /dev/null and b/162/CH1/EX1.15.b/example115_b.jpg differ diff --git a/162/CH1/EX1.15.b/example115b.sce b/162/CH1/EX1.15.b/example115b.sce new file mode 100755 index 000000000..f549aadd9 --- /dev/null +++ b/162/CH1/EX1.15.b/example115b.sce @@ -0,0 +1,7 @@ +//Example 1.15b +//Check whether the given signal is periodic or not +clc; +t=-10:0.01:10; +y=sin((2*%pi/5)*t); +plot(t,y); +disp('Plot shows that the given signal is periodic with period 5'); \ No newline at end of file diff --git a/162/CH1/EX1.15.c/example115_c.jpg b/162/CH1/EX1.15.c/example115_c.jpg new file mode 100755 index 000000000..7af3f2efa Binary files /dev/null and b/162/CH1/EX1.15.c/example115_c.jpg differ diff --git a/162/CH1/EX1.15.c/example115c.sce b/162/CH1/EX1.15.c/example115c.sce new file mode 100755 index 000000000..f89b8b365 --- /dev/null +++ b/162/CH1/EX1.15.c/example115c.sce @@ -0,0 +1,7 @@ +//Example 1.15c +//Check whether the given signal is periodic or not +clc; +t=-20:0.01:20; +y=sin((%pi/2)*t)+cos((%pi/4)*t); +plot(t,y); +disp('Plot shows that the given signal is periodic with period 40'); \ No newline at end of file diff --git a/162/CH1/EX1.15.d/example115_d.jpg b/162/CH1/EX1.15.d/example115_d.jpg new file mode 100755 index 000000000..83f0079a0 Binary files /dev/null and b/162/CH1/EX1.15.d/example115_d.jpg differ diff --git a/162/CH1/EX1.15.d/example115d.sce b/162/CH1/EX1.15.d/example115d.sce new file mode 100755 index 000000000..7ac2943d3 --- /dev/null +++ b/162/CH1/EX1.15.d/example115d.sce @@ -0,0 +1,7 @@ +//Example 1.15d +//Check whether the given signal is periodic or not +clc; +t=-10:0.01:10; +y=(cos(t))^2; +plot(t,y); +disp('Plot shows that the given signal is periodic with period %pi'); \ No newline at end of file diff --git a/162/CH1/EX1.15.e/example115_e.jpg b/162/CH1/EX1.15.e/example115_e.jpg new file mode 100755 index 000000000..e18ad790e Binary files /dev/null and b/162/CH1/EX1.15.e/example115_e.jpg differ diff --git a/162/CH1/EX1.15.e/example115e.sce b/162/CH1/EX1.15.e/example115e.sce new file mode 100755 index 000000000..227f6fc2e --- /dev/null +++ b/162/CH1/EX1.15.e/example115e.sce @@ -0,0 +1,7 @@ +//Example 1.15e +//Check whether the given signal is periodic or not +clc; +t=-20:0.01:20; +y=sin(t)+cos(sqrt(3)*t); +plot(t,y); +disp('Plot shows that the given signal is NOT periodic'); \ No newline at end of file diff --git a/162/CH1/EX1.19.a/example119a.sce b/162/CH1/EX1.19.a/example119a.sce new file mode 100755 index 000000000..18189d5f9 --- /dev/null +++ b/162/CH1/EX1.19.a/example119a.sce @@ -0,0 +1,7 @@ +//Example 1.19a +//Check whether the given signal is periodic or not +clc; +n=-50:50; +y=sin(n/5); +plot2d3(n,y); +disp('Plot shows that the given signal is periodic'); \ No newline at end of file diff --git a/162/CH1/EX1.19.b/example119b.sce b/162/CH1/EX1.19.b/example119b.sce new file mode 100755 index 000000000..7a534f0d7 --- /dev/null +++ b/162/CH1/EX1.19.b/example119b.sce @@ -0,0 +1,7 @@ +//Example 1.19b +//Check whether the given signal is periodic or not +clc; +n=-20:20; +x=exp(%i*(%pi/5)*n); +plot2d3(n,x); +disp('Plot shows that the given signal is periodic'); \ No newline at end of file diff --git a/162/CH1/EX1.19.c/example119c.sce b/162/CH1/EX1.19.c/example119c.sce new file mode 100755 index 000000000..cc5fa5a18 --- /dev/null +++ b/162/CH1/EX1.19.c/example119c.sce @@ -0,0 +1,7 @@ +//Example 1.19c +//Check whether the given signal is periodic or not +clc; +n=-75:75; +x=cos((%pi/5)*n)+sin((%pi/6)*n); +plot2d3(n,x); +disp('Plot shows that the given signal is periodic'); \ No newline at end of file diff --git a/162/CH1/EX1.3.a/example13a.sce b/162/CH1/EX1.3.a/example13a.sce new file mode 100755 index 000000000..ce46235f0 --- /dev/null +++ b/162/CH1/EX1.3.a/example13a.sce @@ -0,0 +1,10 @@ +//Example 1.3a +//Find whether the the given signal is energy or power signal +clc; +A=0.5; +phi=0; +t=0:0.001:10; +y=A*sin(2*%pi*t+phi); +P=(integrate('A^2*(sin(2*%pi*t))^2','t',0,2*%pi))/(2*%pi); +disp(P,'Power of the signal is'); +disp('Since the power of the given signal is finite so we can say that this signal is a power signal'); \ No newline at end of file diff --git a/162/CH1/EX1.3.b/example13b.sce b/162/CH1/EX1.3.b/example13b.sce new file mode 100755 index 000000000..8318edd98 --- /dev/null +++ b/162/CH1/EX1.3.b/example13b.sce @@ -0,0 +1,9 @@ +//Example 1.3b +//Find whether the the given signal is energy or power signal +clc; +b=0.5; +t=0:0.001:10; +y=exp(-b*t); +E=integrate('(exp(-b*t))^2','t',0,2*%pi); +disp(E,'Energy of the signal is'); +disp('Since the energy of the given signal is finite so we can say that this signal is an energy signal'); \ No newline at end of file diff --git a/162/CH1/EX1.4/example14.jpg b/162/CH1/EX1.4/example14.jpg new file mode 100755 index 000000000..e412c159e Binary files /dev/null and b/162/CH1/EX1.4/example14.jpg differ diff --git a/162/CH1/EX1.4/example14.sce b/162/CH1/EX1.4/example14.sce new file mode 100755 index 000000000..0ec75bb5d --- /dev/null +++ b/162/CH1/EX1.4/example14.sce @@ -0,0 +1,23 @@ +//Example 1.4 +//Time Shifting And Scaling +clc; +n=-2:8; +x=[0,0,0,1,2,3,4,4,0,0,0]; +n1=n+3; +subplot(2,2,1); +plot2d3(n1,x); +xtitle('x[n-3]'); +subplot(2,2,2); +plot2d3(ceil(n/3),x); +xtitle('x[3n]'); +subplot(2,2,3); +n2=-8:2; +plot2d3(n2,x($:-1:1)); +xtitle('x[-n]'); +subplot(2,2,4) +n3=n2+3; +plot2d3(n3,x($:-1:1)); +xtitle('x[-n+3]'); +figure +plot2d3(n,x); +xtitle('x[n]'); \ No newline at end of file diff --git a/162/CH1/EX1.4/example14_a.jpg b/162/CH1/EX1.4/example14_a.jpg new file mode 100755 index 000000000..a7e6c7ea0 Binary files /dev/null and b/162/CH1/EX1.4/example14_a.jpg differ diff --git a/162/CH1/EX1.5/example15.sce b/162/CH1/EX1.5/example15.sce new file mode 100755 index 000000000..cdc56454d --- /dev/null +++ b/162/CH1/EX1.5/example15.sce @@ -0,0 +1,9 @@ +//Example 1.5 +clc; +n=-1:5; +x1=[0,0,1,2,-3,0,-2]; +x2=[2,1,-1,3,2,0,0]; +y1=x1+x2; +disp(y1,'y1[n]='); +y2=x1.*x2; +disp(y2,'y2[n]='); \ No newline at end of file diff --git a/162/CH1/EX1.6/example16.jpg b/162/CH1/EX1.6/example16.jpg new file mode 100755 index 000000000..dbd581ee5 Binary files /dev/null and b/162/CH1/EX1.6/example16.jpg differ diff --git a/162/CH1/EX1.6/example16.sce b/162/CH1/EX1.6/example16.sce new file mode 100755 index 000000000..628ab4e69 --- /dev/null +++ b/162/CH1/EX1.6/example16.sce @@ -0,0 +1,12 @@ +//Example 1.6 +clc; +n1=-4:-1; +for i=1:length(n1) + x(i)=1+(n1(i)/4); +end +for j=5:9 + x(j)=1; +end +n=-4:4; +plot2d3(n,x); +xtitle('x[n]'); \ No newline at end of file diff --git a/162/CH1/EX1.8.a/example18_a.jpg b/162/CH1/EX1.8.a/example18_a.jpg new file mode 100755 index 000000000..6da5017cc Binary files /dev/null and b/162/CH1/EX1.8.a/example18_a.jpg differ diff --git a/162/CH1/EX1.8.a/example18a.sce b/162/CH1/EX1.8.a/example18a.sce new file mode 100755 index 000000000..b57719385 --- /dev/null +++ b/162/CH1/EX1.8.a/example18a.sce @@ -0,0 +1,9 @@ +//Example 1.8a +//Check whether the given signal is periodic or not +clc; +n=-20:20; +x=cos(0.1*%pi*n); +plot2d3(n,x); +f=0.1*%pi/(2*%pi);//f is no. of cycles per sample +N=1/f;//N is no. of samples per cycle +disp('samples',N,'Figure shows that the signal is periodic with period equal to'); \ No newline at end of file diff --git a/162/CH1/EX1.9.a/example19a.sce b/162/CH1/EX1.9.a/example19a.sce new file mode 100755 index 000000000..993a2fb66 --- /dev/null +++ b/162/CH1/EX1.9.a/example19a.sce @@ -0,0 +1,14 @@ +//Example 1.9a +clc; +E=0; +for n=0:100 + x(n+1)=(-0.3)^n; +end +for n=0:100 + E=E+x(n+1)^2; +end +if E<%inf then + disp(E,'The given signal is energy signal with energy='); +else + disp('The given signal is not energy signal'); +end \ No newline at end of file diff --git a/162/CH1/EX1.9.b/example19b.sce b/162/CH1/EX1.9.b/example19b.sce new file mode 100755 index 000000000..781010f1f --- /dev/null +++ b/162/CH1/EX1.9.b/example19b.sce @@ -0,0 +1,14 @@ +//Example 1.9b +clc; +for n=0:100 + x(n+1)=2; +end +P=0; +for n=0:100 + P=P+(abs(x(n+1)^2))/100; +end +if P<%inf then + disp(P,'The given signal is power signal with power ='); +else + disp('The given signal is not power signal'); +end \ No newline at end of file diff --git a/162/CH1/EX1.9.c/example19c.sce b/162/CH1/EX1.9.c/example19c.sce new file mode 100755 index 000000000..e3860395d --- /dev/null +++ b/162/CH1/EX1.9.c/example19c.sce @@ -0,0 +1,14 @@ +//Example 1.9c +clc; +for n=1:100 + x(n)=3*exp(%i*2*n); +end +P=0; +for n=1:100 + P=P+(abs(x(n)^2))/100; +end +if P<%inf then + disp(P,'The given signal is power signal with power ='); +else + disp('The given signal is not power signal'); +end \ No newline at end of file -- cgit