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 /2210/CH3/EX3.1/3_1.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 '2210/CH3/EX3.1/3_1.sce')
-rwxr-xr-x | 2210/CH3/EX3.1/3_1.sce | 20 |
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;
+
|