How can we calculate/plot z and y parameters given an S2p file for a particular set of measured data?

8 ビュー (過去 30 日間)
Hello,
I have been trying to use the existing function build in matlab that computes S parameters into corresponding Z and Y parameters
However, I am not able to store plot each parameter versus frequency seperately since they are stored generically through the command
Y=yparameters(filename.s2p)
Z=zparameters(filename.s2p)
I would greatly appreciate it as I am new on using such functions on matlab.
Thanks
  1 件のコメント
Mena Maurice
Mena Maurice 2022 年 2 月 22 日
y =
yparameters: Y-parameters object
NumPorts: 2
Frequencies: [79×1 double]
Parameters: [2×2×79 double]
rfparam(obj,i,j) returns Y-parameter Yij
for instance here is the data stored however, how can we extract it for plotting as well as obtain the magnitude and phasor quantites of each parameter
Thanks

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

回答 (1 件)

SANKALP DEV
SANKALP DEV 2023 年 9 月 14 日
Hey Mena,
I understand that you are currently working on the task of extracting and plotting the magnitude and phase from a Y-parameters object.
Since you have already accessed the Y-parameters object, I'd like to guide you through the necessary steps to accomplish your goals.
Please refer to steps given below:
  • Extract the frequencies and parameters using dot notations as shown below.
freq = Y.Frequencies;
para = Y.Parameters;
  • Extract the individual Y-parameters, using ‘rfparam
Y11 = rfparam(Y, 1, 1);
Y12 = rfparam(Y, 1, 2);
Y21 = rfparam(Y, 2, 1);
Y22 = rfparam(Y, 2, 2);
  • Calculate the magnitude and phase of each Y-parameter as follows.
mag_Y11 = abs(Y11);
phase_Y11 = angle(Y11);
  • Finally, use the plot function to plot phase and magnitude.
For more information about the functions used above, please refer to following MATLAB documentations:
Hope it helps.

カテゴリ

Help Center および File ExchangePropagation and Channel Models についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by