用matlab求解二阶微分方程答:1、建立微分方程的自定义函数,odefun(x,y)2、当a=10、θ=π/6时,执行下列代码 theta=pi/6;[x,y]= ode45(@odefun,[0,0.18],[0.5,theta])plot(x,y),grid on legend('y (x)','y’(x)')xlabel('x'),ylabel('y (x),y’(x)')figure(2)plot(y(:,1),y(:,2)),...
matlab 二阶微分方程 求解答:1、建立微分方程的自定义函数,odefun(容x,y)2、当a=10、θ=π/6时,执行下列代码 theta=pi/6;[x,y]= ode45(@odefun,[0,0.18],[0.5,theta])plot(x,y),grid on legend('y (x)','y’(x)')xlabel('x'),ylabel('y (x),y’(x)')figure(2)plot(y(:,1),y(:,2))...