Changeset 38 for trunk/src/proj_grid.m
 Timestamp:
 Mar 7, 2010, 6:30:11 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/proj_grid.m
r19 r38 6 6 function [A,rangx,rangy]=proj_grid(vec_X,vec_Y,vec_A,rgx_in,rgy_in,npxy_in) 7 7 if length(vec_Y)<2 8 warndlg_uvmat('less than 2 points in proj_grid.m','ERROR');8 msgbox_uvmat('ERROR','less than 2 points in proj_grid.m'); 9 9 return; 10 10 end 11 11 diffy=diff(vec_Y); %difference dy=vec_Y(i+1)vec_Y(i) 12 12 index=find(diffy);% find the indices of vec_Y after wich a change of horizontal line occurs(diffy non zero) 13 if isempty(index); warndlg_uvmat('points aligned along abscissa in proj_grid.m','ERROR'); return; end;%points aligned% A FAIRE: switch to line plot.13 if isempty(index); msgbox_uvmat('ERROR','points aligned along abscissa in proj_grid.m'); return; end;%points aligned% A FAIRE: switch to line plot. 14 14 diff2=diff(diffy(index));% diff2 = fluctuations of the detected vertical grid mesh dy 15 15 if max(abs(diff2))>0.001*abs(diffy(index(1))) % if max(diff2) is larger than 1/1000 of the first mesh dy
Note: See TracChangeset
for help on using the changeset viewer.