syntax error on simulink
8 views (last 30 days)
Show older comments
Moopela Tlhone
on 10 Jun 2021
Answered: Walter Roberson
on 10 Jun 2021
I am getting an error in simulink in a Fcn block:
m*(u(1) - l*u(3)*u(3)*sin(u(2)) + l*u(4)*cos(u(2)))
Can someone help urgently. Thanks in advance.
3 Comments
Accepted Answer
Walter Roberson
on 10 Jun 2021
Simulink Fcn blocks give syntax errors if you name variables in them that are not variables that exist in the workspace.
I suspect that either m or I or both are not currently defined.
You might tend to think that Fcn blocks would wait until execution time to look for variables existing, but if I recall correctly, they parse the string at block initialization time
0 Comments
More Answers (0)
See Also
Categories
Find more on Discontinuities in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!