[x1,x2,x3,x4]=dsolve('Dx1=x2','Dx3=x4','Dx2=4*(x1-1)*(x2^2+x4^2)^3/2*x4^-2*((x1-1)^2+x3^2)^-3','Dx4=4*x3*(x2^2+x4^2)^3/2*x2^-2*((x1-1)^2+x3^2)^-3')
请问我这个微分方程组 该怎么解?matlab我不太懂,只会简单的套用别人的格式,如果解决了这个问题 给你加分 呵呵
追答机器没装matlab 忘得差不多了。
>> s1='a*c+b*d=0.75925';s2='b*c-a*d=0.65079';s3='a^2+b^2=1';s4='c^2+d^2=1';
>> [a b c d]=fsolve(s1,s2,s3,s4)
参考下上面的格式,s1,s2,s3,s4分别表示4个方程,a,b,c,d是未知数
利用matlab求解微分方程,谢谢!
Warning: Explicit solution could not be found.> In dsolve at 120 a = [ empty sym ]我把f用数值代替,比如1,结果如下:>> a=dsolve('Dx=(sqrt((1-x)^2+y^2)-1+x)\/y')Warning: Explicit solution could not be found.> In dsolve at 120 a = [ empty sym ]warning的意思应...
...微分方程组时,出现Explicit solution could not be found In dsolv...
方程组变为(dy\/dx)\/(1-y) – z =cosx,dz\/dx + y =1;这样Z,Y都是X的函数;>> dsolve('Dy\/(1-y)-z=cos(x),Dz+y=1','x')Warning: Explicit solution could not be found.> In dsolve at 101 ans = [ empty sym ] 空解!
在matlab中求解微分方程时不能设定初始值的问题
dsolve('Dh=1000*(2*h)^(1\/2)','h(0)=1')进去,可以得到结果 ans = [ 500000*t^2+1000*2^(1\/2)*t+1][ 500000*t^2-1000*2^(1\/2)*t+1]你再看一下有没有什么输错了啊。不带初值,我解出来的结果是 dsolve('Dh=1000*(2*h)^(1\/2)')ans = 500000*t^2+1000*2^(1\/...
关于matlab编程的问题
1:对于第一题的微分方程组在matlab中输入[f,g]=dsolve('Df=exp(f*sin(t)+g)','Dg=exp(g*cos(t))+f','t')答案是 Explicit solution could not be found,即没有解析解,因此只能求其近似解,也就是数值解。求解微分方程的数值解需要知道“函数的初值”“自变量的范围”,即f(0)=?,g...
Matlab带初始值的微分方程求解画图 要求用plot并画在1张图上 求高手看...
'Dy=x*exp(x)*(cos(y))^2','y(1)=pi','x')y1 = atan(exp(x)*(x - 1))y2 = pi\/2 Warning: Explicit solution could not be found.> In dsolve at 101 y3 = [ empty sym ]其次 y2为一常数 pi\/2 y3matlab求不出解析式(其实应该和y1一样的)所以你带入x值是不行的 ...
求年龄结构模型的MATLAB程序,解偏微分方程组
>>symsx(t)y(t)rdabr='1';d='0.5';a='0.1';b='0.02';[x,y]=dsolve(diff(x)==(r-a*y)*x,diff(y)==-(d-b*x)*y,x(0)==25,y(0)==2)Warning:Explicitsolutioncouldnotbefound.>Indsolveat194x=[emptysym]y=[]说明无解。
matlab:求解 dy\/dx-x*sin(x+y)=0;y(1)=0
dsolve('Dy=x*sin(x+y)','x')Warning:Explicit solution could not be found.> In dsolve at 330 ans = [empty sym ]说明matlab解不出来,变一下形。令z=x+y,则dy\/dx=dz\/dx-1,原方程化为dz\/dx-1-xsinz=0,z(1)=1 >> dsolve('Dz=x*sinz+1','z(1)=1','x')ans = 1...
如何用matlab求解非线性微分方程组
03)';接下来是求解 比如现在要求解s,下面的代码可以给出s的表达式 solution = solve(eq1, eq2, s);接下来求值 首先给变量赋值 x = 1;t = 1;之后运行 result = eval(solution);可以求出解。我现在写出的代码可能有错误,不过思路是这样的。我没调试。详细情况可以搜索 matlab 符号运算。
怎么用MATLAB解ax²\/2=﹙d²y\/dx²﹚\/[1﹢﹙dy\/dx﹚²] ³\/...
matlab 解不出, dsolve('a*x^2\/2=D2y\/(1+Dy^2)^(3\/2)','x')Warning: Explicit solution could not be found.> In dsolve at 101 ans = [ empty sym ]mathematic可以解出来
用matlab求dy\/dx=y+x\/y-x的通解
e.g if you type the following command to generate the general solution of this ODE, the IDE should warn you that "Explicit solution could not be found."syms y(x)Sol = dsolve( diff(y,x) == y+x\/y-x );Therefore, my current solution is just alternatively get the graphic ...