how to convert z parameter to s parameter?
Ältere Kommentare anzeigen
Hi,
I have two set of data.
One data has frequency, Z(ohm), theta.(R1Z.csv)
other data set has frequency, Z(db), theta (R1.txt)
I need to convert this two set of data from Z paramters to S parameter.
Could any one please help me to resolve the issue?
Antworten (1)
Bora Eryilmaz
am 20 Dez. 2022
Bearbeitet: Bora Eryilmaz
am 20 Dez. 2022
Depending on which way you want to go:
% Ohm to dB
Z = 4.17;
ZdB = 20 * log10(Z)
% dB to ohm
ZdB = 12.39;
Z = 10^(ZdB / 20)
I am not sure what you mean by S parameter, though.
4 Kommentare
Venkatkumar M
am 20 Dez. 2022
Bora Eryilmaz
am 20 Dez. 2022
Bearbeitet: Bora Eryilmaz
am 20 Dez. 2022
The error "Z_PARAMS must be a complex N-by-N-by-M array." indicates that your variable z is not in the correct format. Is your z matrix a square matrix?
z = rand(3,3) + rand(3,3)*1i
z2s(z,5)
Venkatkumar M
am 20 Dez. 2022
Looks like to have magnitudes and angles as your data:
(1.23903195326879e+001dB,-8.89777753697489e+001°)
I think the right transformation to a complex format would be the (r,theta) to (x,y) transformation:
ZdB = 1.23903195326879e+001; % In dB
Z = 10^(ZdB / 20)
thetaDeg = -8.89777753697489e+001; % In degrees
thetaRad = thetaDeg * pi / 180 % In radians
z = Z * (cos(thetaRad) + 1i*sin(thetaRad))
s = z2s(z, 1)
I don't know much about z2s transformations, so please double check if the last line gives you what you want.
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!