MATLAB (R2022a版) 代码:syms x;[t, y] = ode45(@(t, y)odeint(x,y), [0,1], np.zeros(1));[p, ~, ~, ~] = leastsq(@(p)odeint(t, y, p), np.zeros(1));x = linspace(0,1);plot(x, odeint(t, y, p));title("SimHei");
MATLAB (R2022a版) 代码:syms x;[t, y] = ode45(@(t, y)odeint(x,y), [0,1], np.zeros(1));[p, ~, ~, ~] = leastsq(@(p)odeint(t, y, p), np.zeros(1));x = linspace(0,1);plot(x, odeint(t, y, p));title("SimHei");