gistlib
main.m% Define your objective function fun = @(x) x(1)^2 + x(2)^2; % Perform nonlinear fitting using fminsearch x0 = [0,0]; % Initial guess x = fminsearch(fun, x0); 160 chars7 lines
% Define your objective function fun = @(x) x(1)^2 + x(2)^2; % Perform nonlinear fitting using fminsearch x0 = [0,0]; % Initial guess x = fminsearch(fun, x0);
gistlibby LogSnag