Problem with solve function

조회 수: 2 (최근 30일)
Maruthi prasanna C
Maruthi prasanna C 2020년 3월 16일
답변: Stephan 2020년 3월 16일
syms s vs v1 v2 vo s R1 R2 R3 Rc1 Rc2 gm1 gm2 gm3 gmc1 gmc2 C1 C2 Cc1 Cc2 k1 k2;
% Nodal Analysis Equations
eq1 = '-gm1*vs + v1/R1 + v1*s*C1 - v2/(1/(s*Cc1)+Rc1)+ vo/(1/(s*Cc2)+Rc2)=0'
eq2 = 'gm2*v1 + v2/R2 + v2/(1/(s*Cc1)+Rc1) + v2*s*C2=0'
eq3 = 'gm3*v2 + vo/R3 + vo/(1/(s*Cc2)+Rc2) + vo*s*C3=0'
[v1,v2,vo]=solve(eq1,eq2,eq3,v1,v2,vo);
eq1 =
'-gm1*vs + v1/R1 + v1*s*C1 - v2/(1/(s*Cc1)+Rc1)+ vo/(1/(s*Cc2)+Rc2)=0'
eq2 =
'gm2*v1 + v2/R2 + v2/(1/(s*Cc1)+Rc1) + v2*s*C2=0'
eq3 =
'gm3*v2 + vo/R3 + vo/(1/(s*Cc2)+Rc2) + vo*s*C3=0'
Error using solve>getEqns (line 418)
List of equations must not be empty.
Error in solve (line 226)
[eqns,vars,options] = getEqns(varargin{:});
Error in ThreeStageIndirectCompensation_Class_A (line 17)
[v1,v2,vo]=solve(eq1,eq2,eq3,v1,v2,vo);
>>
  댓글 수: 1
Maruthi prasanna C
Maruthi prasanna C 2020년 3월 16일
Need to know what doesn error "List of equations must not be empty." mean & fix for it

댓글을 달려면 로그인하십시오.

채택된 답변

Stephan
Stephan 2020년 3월 16일
syms s vs v1 v2 vo s R1 R2 R3 Rc1 Rc2 gm1 gm2 gm3 gmc1 gmc2 C1 C2 C3 Cc1 Cc2 k1 k2;
% Nodal Analysis Equations
eq1 = -gm1*vs + v1/R1 + v1*s*C1 - v2/(1/(s*Cc1)+Rc1)+ vo/(1/(s*Cc2)+Rc2)==0
eq2 = gm2*v1 + v2/R2 + v2/(1/(s*Cc1)+Rc1) + v2*s*C2==0
eq3 = gm3*v2 + vo/R3 + vo/(1/(s*Cc2)+Rc2) + vo*s*C3==0
[v1,v2,vo]=solve(eq1,eq2,eq3,v1,v2,vo)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Partial Differential Equation Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by