-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLD_Shyam.m
110 lines (94 loc) · 2.21 KB
/
LD_Shyam.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
%% Smith
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG6_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
Smith = A(:,2) + 1i.* A(:,3);
figure,plot(Freq(13:end),A(13:end,2))
% figure,smithplot(Freq,Smith./100)
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG2_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
Smith = A(:,2) + 1i.* A(:,3);
hold on,plot(Freq(13:end),A(13:end,2))
% figure,smithplot(Freq,Smith./100)
%% S11
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_S11_LEG6_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
figure,plot(Freq,A(:,2))
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_S11_LEG5_2.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
hold on,plot(Freq,A(:,2))
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_S11_LEG2_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
hold on,plot(Freq,A(:,2))
%%
legend('6.5', '5.2', '2.5')
grid on, grid minor
%% Resistance
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG6_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
figure,plot(Freq,A(:,2))
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG5_2.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
hold on,plot(Freq,A(:,2))
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG2_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
hold on,plot(Freq,A(:,2))
%%
legend('6.5', '5.2', '2.5')
grid on, grid minor
%% Reactance
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG6_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
figure,plot(Freq,A(:,3))
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG5_2.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
hold on,plot(Freq,A(:,3))
%%
Folder = 'C:\Users\yuanhui\Documents\20200526_Shyam_LD\';
filename = 'LD_SMITH_LEG2_5.CSV';
A = readmatrix([Folder filename]);
%
Freq = A(:,1);
hold on,plot(Freq,A(:,3))
%%
legend('6.5', '5.2', '2.5')
grid on, grid minor