Borrar filtros
Borrar filtros

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

12 visualizaciones (últimos 30 días)
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 comentario
Mena Maurice
Mena Maurice el 22 de Feb. de 2022
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

Iniciar sesión para comentar.

Respuestas (1)

SANKALP DEV
SANKALP DEV el 14 de Sept. de 2023
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.

Categorías

Más información sobre Wireless Communications en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by