diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /196/CH3/EX3.10/example_3_10.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '196/CH3/EX3.10/example_3_10.sce')
-rwxr-xr-x | 196/CH3/EX3.10/example_3_10.sce | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/196/CH3/EX3.10/example_3_10.sce b/196/CH3/EX3.10/example_3_10.sce new file mode 100755 index 000000000..5a45729c9 --- /dev/null +++ b/196/CH3/EX3.10/example_3_10.sce @@ -0,0 +1,50 @@ +//Chapter 3
+//Example 3-10
+//ProbOnDCVoltage
+//Page 53,54
+clear;clc;
+xcos('Figure3_10.xcos');
+//Figure 3-5(b)
+x=[0 1 2]
+y=[-5,5,-5]
+subplot(2,2,1)
+a=gca()
+a.thickness = 1;
+a.x_location = 'middle';
+plot2d(x,y,style=3,rect=[0,-5,2,5])
+xtitle ( " Eac Vs t " , " t(ms) " , " Eac(V) " );
+subplot(2,2,2)
+x1=[0 0.5 1 1.5 2]
+y1=[10 5 0 5 10]
+a=gca()
+a.thickness = 1;
+a.x_location = 'middle';
+plot2d(x1,y1,style=3,rect=[0,-15,2,15])
+xtitle ("Edc Vs t" , " t(ms)", " Edc(V)");
+y2=[5 0 -5 0 5]
+y3=[-2.5 -7 -12.5 -7 -2.5]
+plot2d(x1,y2,style=2)
+plot2d(x1,y3,style=1)
+legend ( " Edc= - 5 V " , " Edc= 0 V ", " Edc= 7 V" );
+xtitle (" Waveshapes of Vo for Edc = 0V, -5V , 7V")
+//Figure 3-5(c)
+subplot(2,2,3)
+x4=[-5 0 5]
+y4=[10 5 0]
+y5=[5 0 -5]
+y6=[-2.5 -7.5 -12.5]
+a=gca()
+a.thickness = 1;
+a.y_location = 'middle';
+a.x_location = 'middle';
+plot2d(x4,y4,style=3,rect=[-5,-15,5,15])
+plot2d(x4,y5,style=2,rect=[-5,-15,5,15])
+plot2d(x4,y6,style=1,rect=[-5,-15,5,15])
+legend ( " Edc= - 5 V " , " Edc= 0 V ", " Edc= 7 V" );
+xtitle (" Vo Vs Eac " , " Eac(V)", " Vo ");
+xtitle (" Output-Input Characteristic")
+printf("\n\n If Edc = 0 V , Eac appears inverted at Vo ( Gain is -1 )")
+printf("\n\n If Edc = - 5 V , Eac appears at the output as a 5 V dc-offset voltage upon which rides the inverted Eac ")
+printf("\n\n If Edc = 7 V , then Eac shifts down by 7 V ")
+
+
|