I am using Interpreted MATLab fcn to compute forward dynamics. I am using code of accel in which I have added my robot model in the beginning, making the accel function:
function qdd = dynam(Q, qd, torque) %my robot model here before accel code end
Now when I write this in Simulink function block: dynam(u(1),u(2),u(3)) I get this error:
Caused by: Error due to multiple causes. -insufficient arguments -Error in 'model_check/Interpreted MATLAB Function' while evaluating expression.
How can I get the dynamics correct? I want qdd, qd as well as q (by integrating)