Skip to content
Snippets Groups Projects
Commit b335b652 authored by Charlotte Bond's avatar Charlotte Bond
Browse files

giving better guess for initial offset

parent 0f9d2647
No related branches found
No related tags found
Loading
......@@ -59,13 +59,13 @@ function [map_out,Rc_out,delta_x0,delta_y0]=FT_remove_curvature_from_mirror_map(
disp_str='off';
end
zoffset=0;
zoffset=map.data(round(map.y0),round(map.x0))*map.scaling*1e9;
%params=[Rc_in, zoffset, map.x0, map.y0];
params=[Rc_in, zoffset];
% set options for fminsearch ('help optimset' gives the list of options)
options=optimset('Display',disp_str, 'TolX', 1e-03, 'TolFun',1e-05, 'MaxIter', 1000);
options=optimset('Display',disp_str, 'TolX', 1e-03, 'TolFun',1e-09, 'MaxIter', 100000);
% create link to test function below
f=@testfunc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment