Iterative calculation of non-linear equations.

3 visualizzazioni (ultimi 30 giorni)
Joaquim Monteiro
Joaquim Monteiro il 9 Nov 2015
Risposto: Matt J il 9 Nov 2015
I'm a newbie in matlab.
I need to make a calculation were I estimate initial values, then with this values solve non-linear equations and at the end compare with a residual value, store the values of the calculation, and start again another loop.
Can anyone tell the best way to do this.
Thanks advance.

Risposte (2)

Brandon
Brandon il 9 Nov 2015
Have you tried writing your function as an anonymous function and using the fminsearch function to minimize the equation?
y = @(x) 6*x^2
options = optimset('Display', 'iter');
[x,fval,exitflag] = fminsearch(y, 1, options);

Matt J
Matt J il 9 Nov 2015
See FSOLVE.

Categorie

Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by