Where's the bug in the following codes?
Ältere Kommentare anzeigen
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);
Akzeptierte Antwort
Weitere Antworten (1)
Stalin Samuel
am 9 Okt. 2015
yrfun = @(x)100*(x(2)-x(1)^2)^2+(1-x(1))^2;
[z,val]=fminsearch(yrfun,[-10 10]);
1 Kommentar
Shawn Miller
am 9 Okt. 2015
Bearbeitet: Shawn Miller
am 9 Okt. 2015
Kategorien
Mehr zu Function Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!