MATLAB: Attempt to execute SCRIPT dsolve as a function:

differential equationsdsolveMATLAB

Hello everybody.
I need to solve a system of 3 differential equations plus a not differential one.
I tried that:
syms x y z w real
S = dsolve('Dx -(((a*(x^2+Tamb^2)*(x+Tamb)*(Tamb-x)+ (b*(x^2+Tamb^2)*(x+Tamb)+c)*(y-x)+d))/e) = 0',...
'Dy -(((a*(x^2+Tamb^2)*(x+Tamb))*(x-y)+(f*(z-y))+((Tamb-y)/g)+(h-i*(1-l*(y - T_ref))))/m) = 0',...
'Dz -((f*(y-z)-n*(w-Tf0))/o)=0',...
'Dw - 2*z+Tf0 = 0',...
'x(0)=Tamb', 'y(0)=299', 'z(0)=288','w(0)=1',...
'IgnoreAnalyticConstraints', 'none');
but it tells me:
??? Attempt to execute SCRIPT dsolve as a function:
C:\Users\.........\dsolve.m
Error in ==> dsolve at 25
S = dsolve('Dx -(((a*(x^2+Tamb^2)*(x+Tamb)*(Tamb-x)+
(b*(x^2+Tamb^2)*(x+Tamb)+c)*(y-x)+d))/e) = 0',...
Where is the error?
Thank you very very much

Best Answer

You named your own file dsolve and that is interfering with calling the MATLAB dsolve