diff options
Diffstat (limited to '2210/CH3/EX3.3')
-rwxr-xr-x | 2210/CH3/EX3.3/3_3.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2210/CH3/EX3.3/3_3.sce b/2210/CH3/EX3.3/3_3.sce new file mode 100755 index 000000000..78c60f5c5 --- /dev/null +++ b/2210/CH3/EX3.3/3_3.sce @@ -0,0 +1,23 @@ +//Chapter 3, Problem 3
+clc
+//https://atoms.scilab.org/toolboxes/microwave
+//Download and install the Microwave toolbox from above link and load it from scilab menubar > Toolboxes > microwave
+
+//Plot the smith chart
+uW_display_smith([.2 .5 1 2 5],12);
+r=0.667 //radius of VSWR circle
+Z=0.25-%i*0.5; //impedance
+Z1=50*Z; //50 = characteristic impedance
+G=(Z1-50)/(Z1+50); //reflection coefficient
+R2=0
+plot2d(real(R2),imag(R2),-1);
+plot2d(real(G),imag(G),-8);
+
+//Plot a VSWR circle of radius 0.667
+x=linspace(0,2*%pi,200);
+plot2d(r*cos(x),r*sin(x))
+xtitle("Smith Chart");
+
+
+printf("From smith chart, The answer is %.3f (magnitude) and -124 degree (angle)",r)
+disp("This is shown as point C in Figure 3.11.")
|