How to use y2abcd function if y parameter matrix has variables

37 ビュー (過去 30 日間)
ABIRAMI
ABIRAMI 2024 年 12 月 4 日 5:15
回答済み: Walter Roberson 2024 年 12 月 4 日 8:48
I have to find the equivalent of three two port networks cascaded as below where x1 and x2 are variables ans the matrices represent y-parameters. I am trying to convert them to abcd matrix and then multiply to obtain equivalent abcd which can then be coverted to y.
This is the code I have written for the same
syms x1
y1 = [x1,-x1;-x1,x1];
syms x3
y3 = [x3,-x3;-x3,x3];
syms x1
t1 = y2abcd(y1);
syms x2
t3 = y2abcd(y3);
But, I am getting an error

採用された回答

Walter Roberson
Walter Roberson 2024 年 12 月 4 日 8:48
Nothing in the RF toolbox accepts symbolic parameters (unless it is by accident.)
You cannot use y2abcd() with symbolic parameters.
That said, the calculation is:
syms x1
y_params = [x1,-x1;-x1,x1];
abcd_params = [
-y_params(2,1).\y_params(2,2), -1./y_params(2,1);
y_params(1,2)-y_params(1,1)./y_params(2,1).*y_params(2,2), ...
-y_params(1,1)./y_params(2,1)];
disp(char(abcd_params))
[1, 1/x1; 0, 1]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by