用matlab解:y=dsolve('D2y+exp(-t)*Dy-sin(sqrt(t))*y=exp(-t)*sin(sqrt(t))','y(0)=1,Dy(0)=-2','t')
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 04:22:08
xSn@((xƞ8M
(B68PbEE*
4B Dnv~$R[!lŝ{g{ߟHcهXg>5z
s/Ĉbx\37c}&\1x]*|K#u}I.'A$:=Lfo3f!^,&LLz=y1ˠaqp3 s7v=9WB,=tM/ڭj~)9;_eyasܓO9 W>UG7eӰ@\|u~~
kqbd̖3SQlH(VB@Q%%ȼP&/GJ+%aW';ƣV1իv[d7m'qn#0Kc j:۞Ne[ZPCl!6jd*̈&Sc
)ED3iCPi>2)ZZ5ׂWZ̖X@&X(\Sҳs\:)zU~
用matlab解:y=dsolve('D2y+exp(-t)*Dy-sin(sqrt(t))*y=exp(-t)*sin(sqrt(t))','y(0)=1,Dy(0)=-2','t')
用matlab解:y=dsolve('D2y+exp(-t)*Dy-sin(sqrt(t))*y=exp(-t)*sin(sqrt(t))','y(0)=1,Dy(0)=-2','t')
用matlab解:y=dsolve('D2y+exp(-t)*Dy-sin(sqrt(t))*y=exp(-t)*sin(sqrt(t))','y(0)=1,Dy(0)=-2','t')
此微分方程没有显式解,建议用数值解法
function dyy=xielei(t,y) % 保存为 xielei.m 文件
dyy=[y(2);-exp(-t)*y(2)+sin(sqrt(t))*y(1)+exp(-t)*sin(sqrt(t))];
--------------------------------------------
运行以下:
clear;clc
y0=[1;-2];
[t,y]=ode45('xielei',[0 5],y0);
plot(t,y(:,1),t,y(:,2))
matlab用dsolve解常微分方程并画图,例如y'=1-y^2,y(0)=0.
Matlab求常微分方程为什么错误 dsolve('Dy=-2x*y/(x^2+2*a)')这个matlab提示:Error using ==> dsolve at 126Can not use D as a variable in DSOLVE.
y=dsolve('D2y=(-9.8sin(y))','t')用matlab怎么解出y的轨迹?就是y对t的二阶导加上9.8siny=0
求各路大神指导,MATLAB中:利用dsolve求解偏微分方程 的解(用符号计算).利用dsolve求解偏微分方程dx/dt=y,dy/dt=-x的解(用符号计算)
matlab中 y=dsolve('Dy+a*y=b','y(0)=y0')
matlab解不了这个简单的微分方程dequ='D2y=-GM/(y^2)'y=dsolve(dequ,'y(0)=R0','t')运行结果:Warning:Explicit solution could not be found.> In dsolve at 101怎么回事?
用matlab解微分方程组:dy/dz – z =cosx,dz/dx + y =1 .>> [x,y,z]=dsolve('Dy-z*Dz=cos(x)*Dz,Dz+y*Dx=Dx')Error using ==> dsolveToo many output arguments.Error in ==> dsolve我就这么按照老师教学PPT的一道题模拟的,但是出错了~
用MATLAB求微分方程,并画出图形解y=dsolve('D3y=D2y-Dy-y+t^2','y(0)=0','Dy(0)=1','D2y(0)=-1')这样解了之后怎么画出图形啊!
用matlab解微分方程y=dsolve('D2y+Dy-2y=2x','y(0)=0,Dy(0)=1','x')为什么输出结果是ans =1
用matlab解:y=dsolve('D2y+exp(-t)*Dy-sin(sqrt(t))*y=exp(-t)*sin(sqrt(t))','y(0)=1,Dy(0)=-2','t')
用matlab解常微分方程,调用dsolve是老出错 y=dsolve('Dy=x*sin(x)/cos(y)','x')错误如下:Error using ==> putenvmaplevalue truncatedError in ==> mapleinit at 41putenvmaple('maple',base);Error in ==> maple at 113[result,status] = maplemex(
请教一个用matlab求解微分方程数值解的问题 题意:求dy/dt=2/(sqrt(1-t^2)),-1 s=dsolve('Dy=2/sqrt(1+t^2)','y(0)=1')>> ezplot(s,[-1 1]);grid minor;请问上面使用ode23求解的过程错在哪?书宬:应该是s=dsolve('Dy=2/sqrt(1
matlab,解微分方程,[k,y]=dsolve('Dy=k*(y-28)','Dk=0','y(0)=30.8','y(60)=29.1','t');k=simple(k)y=simple(y)[k,y]=dsolve('Dy=k*(y-28)','Dk=0','y(0)=30.8','y(60)=29.1','t');|Error:Missing variable or function.
matlab的dsolve求不出精确解,如何用ode函数求得数值解?spsilon=0.001
用matlab解常微分方程 不允许用dsolve 要求写出具体算法
用matlab解常微分方程 yaoqiu不允许用dsolve 要求写出具体算法
用matlab解常微分方程组,为什么会出错?调用的是dsolve的函数.
Matlab解非线性微分方程组的问题要求解的方程组为:dx/dt=-x+y^2dy/dt=-2y+x^2x(0)=y(0)=1如何用Matlab解该方程组,并且画出相轨图(即x-y图象)?我用dsolve函数,