- Are all the parameters defined in your workspace? It seems as though you've used an uppercase X and J, so be careful there.
- Is the input signal to the function block a vector with at least 4 elements? You can select Format -> Port/Signal Displays -> Signal Dimensions to see this.
syntax error
22 次查看(过去 30 天)
显示 更早的评论
I am trying to run a simulink block diagram simulation. I have the following function in a func block: (-1/(J/(X^2)+m))*(m*g*sin(u(3))-m*u(1)*(u(4))^2)
no matter what I do I continue to get a sytax error and I simply cannot see what the problem is. Can someone please take a look at this and tell me I am blind.
0 个评论
采纳的回答
Jarrod Rivituso
2011-4-2
There doesn't seem to be anything wrong just based on your syntax.
However, some things to think about...
Good luck.
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!