www.gusucode.com > stats 源码程序 matlab案例代码 > stats/rosenbrocks.m

    function f = rosenbrocks(x)

f = 100*(x.x2 - x.x1^2)^2 + (1 - x.x1)^2;