matlab - solve system of two differential second order equations -
i'm trying solve system of 2 differential second-order equations in matlab, using dsolve function, got error because somehow, dsolve function not convergent.
thats i've tried run:
syms x3(t) x2(t); t=linspace(0,1,20); sol=dsolve(10*diff(x2,2)==500000*(1-x2)+10000*(x3-x2)-1000*(diff(x3)-diff(x2))... ,350*diff(x3,2)==10000*(x2-1)-1000*(diff(x2)-diff(x3)),... x2(0)==0,x3(0)==0); sol=dsolve(diff(x3,2)==5+x2,diff(x2,2)==5+x3,diff(x3(0))==0,x2(0)==0) x3=eval(vectorize(sol.x3)) x2=eval(vectorize(sol.x2)) [x3, x2]=dsolve(diff(x3,2)==5+x2,diff(x2,2)==5+x3,x3(0)==1) s = dsolve(diff(x3,2)==5)
thanks! :-)
Comments
Post a Comment