フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

ODE45 Function Error

1 回表示 (過去 30 日間)
Hafizuddin Bin Mohd Lowhim
Hafizuddin Bin Mohd Lowhim 2020 年 2 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have 3 functions. The function rhs.m should compute the function Dynamics.m and Kinematics.m. Later the main.m will execute the ODE45. I set the variable to be 7x1 matrix. I wrote this way Kinematics x(1:4) and Dynamics x(5:7) . Unfortunately I received this error. Any thought on this how to solve it?
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 main (line 9)
[t,x]=ode45(@rhs,t,x0);
  2 件のコメント
darova
darova 2020 年 2 月 4 日
Where are input arguments for functions?
dq=(Kinematics);
dw=(Dynamics);
Hafizuddin Bin Mohd Lowhim
Hafizuddin Bin Mohd Lowhim 2020 年 2 月 4 日
Thanks! You correct my noob mistake!
dq = Kinematics(qib, bw);
dw = Dynamics(bw, itaud, bI);

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by