Convert a table of S param to Z param

5 ビュー (過去 30 日間)
Venkatkumar M
Venkatkumar M 2022 年 1 月 17 日
コメント済み: William Rose 2022 年 1 月 21 日
Hi,
I have text file which has freq and s21 value(In cartesian form and polar form ).
Need a help in convertering those S-paramteres to Z- parameters
I tried to use s2z command, but i doesn't work in this.
Could any one please help me resolve the problem?

採用された回答

William Rose
William Rose 2022 年 1 月 17 日
How do you know s2z does not work? Do you get an error message, and if so, what?
The input to s2z must be complex numbers, in the form Re + i*Im. The file you provided has a header line and three columns: frequency, real part, imaginary part. It uses two different separators: tab and comma. That is annoying because it complicates the reading in of the data.
I assume that the data is in real, imaginary format. Change it to complex:
z=Re+1i*Im
Then use s2z.
  9 件のコメント
Venkatkumar M
Venkatkumar M 2022 年 1 月 21 日
I am getting error in function renamevars
Undefined function 'renamevars' for input arguments of type 'table'.
Error in s_parm_db_to_z_param_1 (line 7)
T = renamevars(T,["Var1","Var2","Var3"],["freq","magdB","phase"]);
could you please clarify this?
William Rose
William Rose 2022 年 1 月 21 日
@Venkatkumar M, I don;t know why you get an error. The error message suggests Matlab is not finding the function renamevars(). renamevars is art of basic Matlab - nt some Toolbox. Therefore it should work.
Did renamevars get overwritten by accident? Try "clear renamevars" to address this possibility, then try your code again.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by