symbolic matrix help converting

조회 수: 1 (최근 30일)
grace lim
grace lim 2022년 3월 22일
답변: Star Strider 2022년 3월 22일
syms j w C R h11 h12 h21 h22
%matrix i would like to solve ABCD=[1 (1/(j*w*C))+R; 0 1]
%formular to converting ABCD to h para
A=((h11*h22)-(h12*h21))/h21
B=-h11/h21
C=-h22/h21
D=-1/h21
ABCD=[A B;C D]
i have problem trying to get a matrix from the original matrix(ABCD=[1 (1/(j*w*C))+R; 0 1])
using the formular
A=((h11*h22)-(h12*h21))/h21
B=-h11/h21
C=-h22/h21
D=-1/h21
please help

답변 (1개)

Star Strider
Star Strider 2022년 3월 22일
One problem is that ‘C’ is being used to designate the capacitor, and also the ‘ABCD’ (2,1) element. Designating the capacitor as ‘Cc’ removes that ambiguity —
syms w Cc R h11 h12 h21 h22
%matrix i would like to solve ABCD=[1 (1/(j*w*Cc))+R; 0 1]
%formular to converting ABCD to h para
A=((h11*h22)-(h12*h21))/h21
A = 
B=-h11/h21
B = 
C=-h22/h21
C = 
D=-1/h21
D = 
ABCD=[A B;C D]
ABCD = 
ABCD = simplify(ABCD, 500)
ABCD = 
S = ABCD == [1 (1/(1j*w*Cc))+R; 0 1]
S = 
[h11 h12 h21 h22] = solve(S,[h11 h12 h21 h22])
h11 = 
h12 = 
h21 = 
h22 = 
0
I also removed ‘j’ and replaced it with the imaginary operator ‘1j’ (that now appears as i) for clarity.
.

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by