fsolve input

6 vues (au cours des 30 derniers jours)
R yan
R yan le 22 Juil 2011
The fsolve( ) takes function with parameters of the form x(1),x(2).. I have quite long equations involving unknowns x and y. How can I give my equations as input?
  1 commentaire
Sean de Wolski
Sean de Wolski le 22 Juil 2011
Could you show us your equations?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 23 Juil 2011
Instead of using an anonymous function, use a real function that starts out with
y = x(2);
x = x(1); %make sure this is last
and then use your existing equations.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by