Plotting on Smith chart

21 ビュー (過去 30 日間)
VRF
VRF 2020 年 9 月 1 日
編集済み: Walter Roberson 2020 年 9 月 2 日
Hello,
I have Real and imaginary impedances on an Excel sheet which I pull into matlab. I then normalise and plot on smith chart using the command "smithplot". But I see that the plot on smithchart isnt right. Help is appreciated. Please see the enclosed excel sheet and matlab script.
Thanks.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 9 月 2 日
編集済み: Cris LaPierre 2020 年 9 月 2 日
I would probably create the smithplot this way.
data = readtable('1kHz.xlsx');
Z0 = 50;
Zl=data.Rohm + 1i*data.Xohm;
gamma = z2gamma(Zl,Z0);
smithplot (gamma,'+g');
  1 件のコメント
Cris LaPierre
Cris LaPierre 2020 年 9 月 2 日
For your code, make sure you know what the inputs to smithplot are. Figure(1) doesn't work because there is no syntax for inputs r,x. Figure(2) is close. One change will get it to work. You compute gamma with
gamma = (y-50)/(y+50);
This will perform a matrix division. You want elementwise division, so use the "./" elementwise operator.
gamma = (y-50)./(y+50);
See this documentation page for more details.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVisualization and Data Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by