Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将此代码编写为三阶微分 ODE 的函数代码。我不断收到与输入参数不足相同的错误。
function dxdt = odefcn(t,x,a) %Function name dxdt = zeros(3,1); dxdt(1) = x(2); dxdt(2) = x(3); dxdt(3) =-a*x(3)+x(2)-x(1); end