用matlab解二阶微分方程

用matlab解二阶微分方程
y''(t)= -3 cos(2t) +2sin(t)+t-3.8
使用ode23或ode45
其他人气:272 ℃时间:2020-03-26 10:35:46
优质解答
function Myexamp1clear,clc,tspan = [0 20]; % t 的取值范围y0=[0;1]; % 初始值 y(t0) 和 y'(t0)options = odeset('RelTol',1e-4,'AbsTol',[1e-4 1e-4]);[t,y] = ode45(@fun,tspan,y0 ,options);plot(t,y(:,1),'-',...
我来回答
类似推荐
请使用1024x768 IE6.0或更高版本浏览器浏览本站点,以保证最佳阅读效果。本页提供作业小助手,一起搜作业以及作业好帮手最新版!
版权所有 CopyRight © 2012-2024 作业小助手 All Rights Reserved. 手机版