It shows that The expression: (1/(75.31*u(4)+167.36*u(5)+217.57*u(6)+334.37*u(7))*(0.84*(u(3)-u(2))+41840*exp(20.9057-(10000/(u(2)+275.15)))*x*(3)*u(5)+25105*exp(38.9057-(17000/(u(2)+273.15)))*u(4)*u(6))) has a syntax error. I don't know why it is wrong. Can someone help me? This is my first order equations
(1/(75.31*x(3)+167.36*x(4)+217.57*x(5)+334.37*x(6))*(0.84*(x(2)-x(1))+41840*exp(20.9057-(10000/(x(1)+275.15)))*x*(3)*x(4)+25105*exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)))
(1.6/200)*(u(1)-x(2))-(0.42*2)/(200*4.2)*(x(2)-x(1))-(0.084*4)/(200*4.2)*(x(2)-17)
-exp(20.9057-(10000/(x(1)+273.15)))*x(3)*x(4)-exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)
-exp(20.9057-(10000/(x(1)+273.15)))*x(3)*x(4)
exp(20.9057-(10000/(x(1)+273.15)))*x(3)*x(4)-exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)
exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 11월 21일

0 개 추천

Define a set of example value for u(1) to u(7) in MATLAB, copy and past your expression picece by piece in small parts and execute it in MATLAB, find which part causing the problem.

댓글 수: 2

Teo  Adrian
Teo Adrian 2020년 11월 21일
Actually I'm still newbie for this simulink. Can I pm u to ask?
This is my first order equation. If someone can help me to solve it, really thanks alot!
(1/(75.31*x(3)+167.36*x(4)+217.57*x(5)+334.37*x(6))*(0.84*(x(2)-x(1))+41840*exp(20.9057-(10000/(x(1)+275.15)))*x*(3)*x(4)+25105*exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)))
(1.6/200)*(u(1)-x(2))-(0.42*2)/(200*4.2)*(x(2)-x(1))-(0.084*4)/(200*4.2)*(x(2)-17)
-exp(20.9057-(10000/(x(1)+273.15)))*x(3)*x(4)-exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)
-exp(20.9057-(10000/(x(1)+273.15)))*x(3)*x(4)
exp(20.9057-(10000/(x(1)+273.15)))*x(3)*x(4)-exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)
exp(38.9057-(17000/(x(1)+273.15)))*x(3)*x(5)

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

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

태그

질문:

2020년 11월 21일

편집:

2020년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by