Syntax error in Simulink
5 次查看(过去 30 天)
显示 更早的评论
I am getting a syntax error in Simulink in a Fcn block:
((u(2)*(u(3))^2)/12)-((u(2)*u(3))^2)/8)*((1-2*(u(1)/u(3)))-(1/3)*(1-2*(u(1)/u(3)))^3)
I really can't find the problem in this so a little help is appreciated.
0 个评论
采纳的回答
Azzi Abdelmalek
2014-1-17
编辑:Azzi Abdelmalek
2014-1-17
You have a problem with brackets
(u(2)*u(3)^2)/12-((u(2)*u(3))^2)/8*(1-2*u(1)/u(3))-(1/3)*(1-2*u(1)/u(3))^3
2 个评论
Ragul E
2023-4-12
c1*(c2/u(2)-c3*u(3)-c4)*(exp-c5/u(2))+c6*u(1)
same problem tried solving it by reducing brackets but didn't work
更多回答(3 个)
Cristina Avilez
2016-6-5
The expression: m*(u(1)-l*sin(u(3))*(u(2)^2)+l*u(4)*cos(u(3))) in 'Pendulo_1/Sistema_dinamico/N' has a syntax error
But I don't know where the problem is, someone can help me, please.
1 个评论
Azzi Abdelmalek
2016-6-5
编辑:Azzi Abdelmalek
2016-6-5
Cristina, Have you noticed that your comment is considered as an answer? If you want to ask question, delete this comment, then go to the section "Ask a question"
Muhammad Umar Mubashir
2023-2-5
@Cristina Avilez
I am facing same issue.
How did you resolve this error?
Please help me. Thanks.
0 个评论
Kamlesh GUPTA
2023-6-9
(c1*(c2/u(2)-c3*u(3)-c4))*(exp(-c5/u(2))+c6*u(10)
I am getting a syntax error in Simulink in a Fcn block:
How did you resolve this error?
Please help me. Thanks.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Libraries and Blocksets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!