Borrar filtros
Borrar filtros

solving equation written in the functions

1 visualización (últimos 30 días)
Vijay Shankar Dwivedi
Vijay Shankar Dwivedi el 28 de Oct. de 2020
Respondida: Walter Roberson el 1 de Nov. de 2020
I want to solve three equations with three unknowns.
Force_x(x,y,z) == 0, Force_y(x,y,z) == 0, Force_z(x,y,z) == 0
Where Force_x(x,y,z) etc are functions defined in anothe file which involves x, y, z.
vpasolve is not working here because Force_x works only when x y z are numbers, while vpasolve is passing symbols.
Help me with any other method or any modification.
my code:
[XX, YY] = vpasolve([Force_x(x,y,z)==0, Force_y(x,y,z)==0, Force_z(x,y,z)==0], [x, y, z], [0, 0, 0]);
error: Invalid arguments specified in evaluating the interpolant.
this error is due to symbols passed by Force_x.

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Nov. de 2020
fsolve(@(V) [Force_x(V(1),V(2),V(3)), Force_y(V(1),V(2),V(3)), Force_z(V(1),V(2),V(3))], [0 0 0])

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by