I have been trying to use the command dsolve
in Matlab to solve a set of ODEs, but I am getting these errors:
Error in dsolve>mupadDsolve (line 332) T = feval(symengine,'symobj::dsolve',sys,x,options);
Error in dsolve (line 193) sol = mupadDsolve(args, options);
Below is the code if someone wants to take a look at it:
syms t b1 b2 k1 k2;
A=0.5;
m1=3;m2=4;w=6;
y=A*sin(w*t);
xt=dsolve('m1*D2x1+b1*((Dx1)-Dy)+k1*(x1-y)+b2*((Dx1)-(Dx2))+k2*(x1-x2)=0','m2*D2x2+b2*((Dx2)-(Dx1))+k2*(x2- x1)=0','x1(0)=0','Dx1(0)=0','x2(0)=0','Dx2(0)=0');
Could someone please help me with that?
Thank you all very much