Search code examples
matlabsymbolic-mathequation-solvingnonlinear-functions

symbolic system of non linear equation matlab


I'm trying to solve symbolically the following system of equation:

Sys = [...
   k1*x - y == 0,... 
   y - k2*z*w == 0,... 
   1 - x*k8 - y - w == 0,...
   k3*q + k5*q*r - k2*w*z - k4*z*t == 0,...
   1 - z - q == 0,...
   k4*z*t - k5*r*q == 0,...
   1 - r - t == 0];

using the function solve(Sys,[x,y,z,w,q,r,t]) i got: Warning: Explicit solution could not be found.

In solve at 169

but if i try to solve the same system of equation in Mathematica i find two solutions. Am I doing something wrong???

Thanks!


Solution

  • As per the documentation you must list every variable to be solved explicitly:

     AA = solve(Sys,x,y,z,w,q,r,t)