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 /3507/CH13/EX13.5 | |
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 '3507/CH13/EX13.5')
-rw-r--r-- | 3507/CH13/EX13.5/Ex13_5.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/3507/CH13/EX13.5/Ex13_5.sce b/3507/CH13/EX13.5/Ex13_5.sce new file mode 100644 index 000000000..9f6b39c5e --- /dev/null +++ b/3507/CH13/EX13.5/Ex13_5.sce @@ -0,0 +1,32 @@ +// chapter 13
+// example 13.5
+// page 280
+
+printf("operating point is (8V,1mA). During positive half cycle of \nac signal collector current swings from 1 mA to 1.5 mA \nand collector emitter voltage swings from 8 V to 7 V.\nThis is at A.During negative half cycle of \nac signal collector current swings from 1 mA to 0.5 mA \nand collector emitter voltage swings from 8 V to 9 V.\nThis is at B. \n \n")
+
+printf("Note : When ac signal is applied, ac signal collector current and \ncollector emitter voltage variations take place about Q point. \nAlso, operating point moves along load line.\n")
+
+clf()
+x=linspace(-3*%pi,-%pi,10)
+plot(x,-0.5*sin(x)+1)
+
+x=linspace(7,9,10)
+plot(x,5-0.5*x)
+
+x=linspace(-3*%pi,-%pi,10)
+plot(-sin(x)+8,x)
+plot(x,xgrid())
+xtitle("collector current and collector emitter voltage swings","collector emitter voltage (volts)","collector current (mA)")
+a=gca(); // Handle on axes entity
+a.x_location = "origin";
+a.y_location = "origin";
+
+// Some operations on entities created by plot ...
+a=gca();
+a.isoview='on';
+a.children // list the children of the axes : here it is an Compound child composed of 2 entities
+poly1= a.children.children(2); //store polyline handle into poly1
+poly1.foreground = 4; // another way to change the style...
+poly1.thickness = 3; // ...and the tickness of a curve.
+poly1.clip_state='off' // clipping control
+a.isoview='off';
|