Solving system of nonlinear euations
Afficher commentaires plus anciens
In mathematica we use the command NSolve[{x^2 + y^3 == 1, 2 x + 3 y == 4}, {x, y}, Reals] without needing any initial guess to solve a system of non-linear equations. I need the same command in Matlab to solve system of non-linear equations BUT without needing the initial guess. THANKS
4 commentaires
Sara
le 14 Jan 2015
What's the problem with assigning initial guesses? Can't you make them up with some knowledge of the system you're trying to solve?
Kashif
le 14 Jan 2015
Sara
le 14 Jan 2015
I don't think you can. You'll have to use fsolve, which requires an initial guess. If it's a mathematical exercise, I'd go with an array of zeros; otherwise, if the eqn represent a physical system, you can use some reasonable values (e.g. mass is usually >= 0).
Kashif
le 15 Jan 2015
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Utilities for the Solver dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!