Where's the bug in the following codes?
이전 댓글 표시
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);
채택된 답변
추가 답변 (1개)
Stalin Samuel
2015년 10월 9일
yrfun = @(x)100*(x(2)-x(1)^2)^2+(1-x(1))^2;
[z,val]=fminsearch(yrfun,[-10 10]);
댓글 수: 1
Shawn Miller
2015년 10월 9일
편집: Shawn Miller
2015년 10월 9일
카테고리
도움말 센터 및 File Exchange에서 Function Creation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!