blob: 78c60f5c59336620e3699bfcadec1b79b8847b6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.")
|