summaryrefslogtreecommitdiff
path: root/2210/CH3/EX3.3/3_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2210/CH3/EX3.3/3_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2210/CH3/EX3.3/3_3.sce')
-rwxr-xr-x2210/CH3/EX3.3/3_3.sce23
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.")