Where's the bug in the following codes?
Afficher commentaires plus anciens
fun=@(x,y)100*(y-x^2)^2+(1-x)^2;
x=-10:1:10;
y=-10:1:10;
[z,val]=fminsearch(fun,3,3);
Réponse acceptée
Plus de réponses (1)
Stalin Samuel
le 9 Oct 2015
yrfun = @(x)100*(x(2)-x(1)^2)^2+(1-x(1))^2;
[z,val]=fminsearch(yrfun,[-10 10]);
1 commentaire
Shawn Miller
le 9 Oct 2015
Modifié(e) : Shawn Miller
le 9 Oct 2015
Catégories
En savoir plus sur Function Creation 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!