summaryrefslogtreecommitdiff
path: root/2210/CH3/EX3.1
diff options
context:
space:
mode:
Diffstat (limited to '2210/CH3/EX3.1')
-rwxr-xr-x2210/CH3/EX3.1/3_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2210/CH3/EX3.1/3_1.sce b/2210/CH3/EX3.1/3_1.sce
new file mode 100755
index 000000000..37686f1ef
--- /dev/null
+++ b/2210/CH3/EX3.1/3_1.sce
@@ -0,0 +1,20 @@
+//Chapter 3, Problem 1, Figure 3.4
+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);
+Z=[0.7-%i*0.2 0.7+%i*0.3 0.3-%i*0.5 0.3+%i*0.3] //impedances in matrix form
+
+R2=0
+plot2d(real(R2),imag(R2),-1);
+
+for n=1:length(Z)
+ Z1=50*Z(n)
+ G=(Z1-50)/(Z1+50);
+plot2d(real(G), imag(G),-8);
+xtitle("Smith Chart");
+end;
+