Matlab一阶微分方程答:clear allclc f=@(t,y)(-3*cos(2*t)+9*sin(t)+t);tspan=0:.05:5;[t,y1]=ode45(f,tspan,0);y2=tspan.^2/2 - 9*cos(tspan) - (3*sin(2*tspan))/2 + 9plot(tspan,y1,tspan,y2,'r+'),legend('数值解','解析解')基本是一样的 ...
解法matlab怎么求一阶常微分方程组(so答:V = odeToVectorField(diff(x1) ==lamda*x1*x2-u*x2,diff(x2) ==-lamda*x1*x2+0.1)M = matlabFunction(V,'vars', {'t','Y'})计算区间[0 1],初值[0 0]options = odeset('OutputFcn',@odeplot);sol = ode45(M,[0 1],[0 0],options)2题中x=x1,y=x2,z=x3,则:sy...