% n•Ï�”ƒ��[ƒ[ƒ“ƒuƒ�ƒbƒNŠÖ�”‚Ì�Å�¬‰»

n = 4;
xinit = [2;3;4;5];

objective = @(x) n_Rosenbrock(x,n);
[xmin, fmin] = fminsearch(objective, xinit);
xmin
fmin

options = optimset('Display','iter');
[xmin, fmin] = fminsearch(objective, xinit, options);
xmin
fmin
