Syntax error , Component: Simulink, Category: Block error
I am trying to create user defined function theta_2dot of inverted pedulum (cart and pole) using following formulas which is giving me syntax error
Formulas are : -(l*m*cos(u(3))*sin(u(3))*u(4)^2 + F*cos(u(3)) – g*m*sin(u(3)) – M*g*sin(u(3)))/(l*(M + m – m*cos(u(3))^2))
I would like to know correct format for above formulas.
Thank you, AaronI am trying to create user defined function theta_2dot of inverted pedulum (cart and pole) using following formulas which is giving me syntax error
Formulas are : -(l*m*cos(u(3))*sin(u(3))*u(4)^2 + F*cos(u(3)) – g*m*sin(u(3)) – M*g*sin(u(3)))/(l*(M + m – m*cos(u(3))^2))
I would like to know correct format for above formulas.
Thank you, Aaron I am trying to create user defined function theta_2dot of inverted pedulum (cart and pole) using following formulas which is giving me syntax error
Formulas are : -(l*m*cos(u(3))*sin(u(3))*u(4)^2 + F*cos(u(3)) – g*m*sin(u(3)) – M*g*sin(u(3)))/(l*(M + m – m*cos(u(3))^2))
I would like to know correct format for above formulas.
Thank you, Aaron simulink, block error MATLAB Answers — New Questions