Solving system of nonlinear equations

1 visualización (últimos 30 días)
omnia
omnia el 2 de Ag. de 2012
Editada: John Kelly el 2 de Mzo. de 2015
Hello all. I want to solve 10 nonlinear equations in 10 variables. I used 'solve' function but it didn't give me a result " it takes too much time and nothing happened". Is there any other way to do that? The equations are generated within the program.
  24 comentarios
Walter Roberson
Walter Roberson el 9 de Ag. de 2012
The poster is using R14. I don't know if matlabFunction() was available back then?
omnia
omnia el 11 de Ag. de 2012
matlabfunction is not available in my version which I think makes this issue tedious for me.
To Walter: I do not understand what do you mean by "You are not leaving anything to vary to be solved by fsolve()". I think what I wrote is the syntax expression to fsolve. I passed the equations to 'myfun1' (symbolic equations). Then I specified the symbols to be substituted with the initial guess (ones for all the symbols).

Iniciar sesión para comentar.

Respuestas (1)

Honglei Chen
Honglei Chen el 2 de Ag. de 2012
Do you have Optimization Toolbox? If so, you can try fsolve
  6 comentarios
omnia
omnia el 5 de Ag. de 2012
the problem with me is that fsolve requires to write the equations manually in a separate file. In my program I generate them in a for loop (I posted this part of the program above)
Walter Roberson
Walter Roberson el 5 de Ag. de 2012
Use matlabFunction() to convert the symbolic equations into something that fsolve() can deal with.

Iniciar sesión para comentar.

Categorías

Más información sobre Symbolic Computations in MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by