I supposed to obtain the result S21/H. I already made the code but the result obtain does not same.

1 ビュー (過去 30 日間)
Nur Fazwa Shabiqah Fauzi
Nur Fazwa Shabiqah Fauzi 2021 年 8 月 8 日
コメント済み: Awais Saeed 2021 年 8 月 8 日
S21Re = Untitled(1:1001,2);
S21Im = Untitled(1:1001,3);
S21 = S21Re + j*S21Im;
HRe = Hfieldx17(1:1001,2);
HIm = Hfieldx17(1:1001,3);
H = HRe + j*HIm;
f1 = 10e6; %10MHz
f2 = 3e9; %3GHz
f = linspace(f1,f2,1001);
%f = Untitled(1:1001,1);
%S21/H
Pf = S21/H; %probe factor
plot(f,abs(Pf), 'k');
*This is the result I obtain
This is the real result

回答 (1 件)

Awais Saeed
Awais Saeed 2021 年 8 月 8 日
編集済み: Awais Saeed 2021 年 8 月 8 日
try
Pf = S21./H; %probe factor
instead of
Pf = S21/H; %probe factor

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by