龙格库塔法matlab编程求解方程dy/dx=(-0.75*exp^(-0.175*y)+0.025*y+0.75)大侠帮忙啊 y(0)=2.0,初学matlab
龙格库塔法matlab编程求解方程dy/dx=(-0.75*exp^(-0.175*y)+0.025*y+0.75)大侠帮忙啊 y(0)=2.0,初学matlab
日期:2012-09-09 12:43:42 人气:1
function dy=xyxi(x,y) % 保存为 xyxi.m 文件
dy=0.75*exp(-0.175*y)+0.025*y+0.75;
---------------------------------------------------------
运行以下:
[x,y]=ode45('xyxi',[0 10],2.0);
plot(x,y)