diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /911/CH8/EX8.2.a | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '911/CH8/EX8.2.a')
-rw-r--r-- | 911/CH8/EX8.2.a/ex_8_2_a.pdf | bin | 0 -> 128412 bytes | |||
-rw-r--r-- | 911/CH8/EX8.2.a/ex_8_2_a.sce | 58 |
2 files changed, 58 insertions, 0 deletions
diff --git a/911/CH8/EX8.2.a/ex_8_2_a.pdf b/911/CH8/EX8.2.a/ex_8_2_a.pdf Binary files differnew file mode 100644 index 000000000..3efc33e27 --- /dev/null +++ b/911/CH8/EX8.2.a/ex_8_2_a.pdf diff --git a/911/CH8/EX8.2.a/ex_8_2_a.sce b/911/CH8/EX8.2.a/ex_8_2_a.sce new file mode 100644 index 000000000..23d2fa82d --- /dev/null +++ b/911/CH8/EX8.2.a/ex_8_2_a.sce @@ -0,0 +1,58 @@ +//example 8.2 (a)//
+clear
+//clears the screen//
+clc
+//clears the variable//
+close
+//R =input('Enter the value of the resistance R in Kohms : ')//
+//C =input('Enter the value of the Capacitance C in micro farads : ' ) ;
+sp =input ('Enter the spacing between two input pulses in microseconds: ' );
+R =10;
+//taking give values//
+C =0.01;
+t= 693* R*C;
+//calculting time constant//
+tt=t*10;
+p =1;
+len =sp*60 -1;
+q =1;
+for j=1: len
+//plotin the graphs//
+lo = sp *10;
+f= modulo (j,lo);
+if f ==0 then
+inpu (j)=1;
+else
+inpu (j)=0;
+end
+inpu (1) =1;
+o(j)=2;
+end
+while q<len
+result (q) =0;
+q=q+1;
+end
+while p<len
+if inpu (p)==1 then
+for k=1: tt
+result (p+k) =1;
+end
+p=p+tt;
+else
+result (p) =0;
+p=p+1;
+end
+end
+subplot (2 ,1 ,1);
+//ploting bothe graphs in same window//
+plot (o);
+plot ( inpu );
+xlabel ( ' time X10^7 seconds ' );
+ylabel ( 'Magnitude ' ) ;
+title ( ' input pulses ' );
+subplot (2 ,1 ,2);
+plot (o);
+plot ( result );
+xlabel ( ' t ime X10^7 seconds' );
+ylabel ( 'Magnitude' );
+title ( ' Output ' );
\ No newline at end of file |