Too many input arguments and ODE error
显示 更早的评论
I have attached two .m files. One is the code to solve an multiple DoF equation using state space representation and other is the state space equation.
I'm getting the following errors:
Error using state_space
Too many input arguments.
Error in odearguments (line 90)
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 115)
odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
Error in Exc4_1 (line 27)
[tsim, wsim] = ode45(@state_space,time,w0,'options',mass,inertia,stiffness_f, stiffness_r, damping_f, damping_r, l_f, l_r);
How can I correct the code?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!