Syntax error in Simulink
2 次查看(过去 30 天)
显示 更早的评论
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)
0 个评论
回答(1 个)
Fangjun Jiang
2020-11-21
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!