I'm trying to solve three simultaneous nonlinear equations in the unknowns x, y, z with Matlab's symbolic toolbox. What's wrong with the following code?
solve( '(x/4 + y/2 + z/4)*(1/(8*x) + 1/(16*y) + 1/(8*z)) = 0.5774', ...
'(x/4 + y/4 + z/2)*(1/(4*x) + 1/(16*y) + 1/(16*z)) = 0.5774', ...
'(x/2 + y/4 + z/4)*(1/(8*x) + 1/(8*y) + 1/(16*z)) = 0.5774' )
I get the following error:
??? Error using ==> subsref
Index exceeds matrix dimensions.
Error in ==> sym.subsref at 16
y = builtin('subsref',struct(x),a);
Error in ==> solve at 191
S.(char(symvars(j))) = R(:,j);
I'm using Matlab version 7.7.0.471. I'm not familiar at all with the symbolic toolbox. What am I missing?
Am I expecting too much from a symbolic engine? Or, are there better ways to solve the above equations? (A numerical solution will do.)