Syntax Error Simulink fcn block
Mostrar comentarios más antiguos
The expression: (-3*B*L*L*u(4))/J+(a*L*u(1))+(a*L*u(2))+(a*L*u(3)) in 'omnirobotcontrol/Subsystem/theta_2dot' has a syntax error.
WhY I am getting this error. I can't see the wrong :(
8 comentarios
madhan ravi
el 6 de Jun. de 2020
A picture of the model would help.
lokman alici
el 6 de Jun. de 2020
lokman alici
el 6 de Jun. de 2020
lokman alici
el 6 de Jun. de 2020
Walter Roberson
el 6 de Jun. de 2020
you appear to be using a Math Block for the expression, not a MATLAB Function Block. Math blocks are much more restricted in what they permit.
lokman alici
el 6 de Jun. de 2020
Ameer Hamza
el 7 de Jun. de 2020
Can you show the code inside the MATLAB function block?
lokman alici
el 7 de Jun. de 2020
Respuesta aceptada
Más respuestas (1)
Neelkamal
el 19 de Mzo. de 2026 a las 14:36
0 votos
Error:The expression: c1*(c2/u(2) - c3*u(3) - c4)*exp(-c5/u(2)) + c6*u(1)
in 'hybridtrail/wind plant/WIND TURBINE /Wind Turbine model/cp(lambda,beta)/Fcn1'
has a syntax error
Categorías
Más información sobre Programmatic Model Editing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

