Changeset 38 for trunk/src/proj_grid.m


Ignore:
Timestamp:
Mar 7, 2010, 6:30:11 PM (11 years ago)
Author:
sommeria
Message:

field transforms put in subdir transform_field. cleaning of obsolete functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_grid.m

    r19 r38  
    66function [A,rangx,rangy]=proj_grid(vec_X,vec_Y,vec_A,rgx_in,rgy_in,npxy_in)
    77    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');
    99        return;
    1010    end
    1111    diffy=diff(vec_Y); %difference dy=vec_Y(i+1)-vec_Y(i)
    1212    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.
    1414    diff2=diff(diffy(index));% diff2 = fluctuations of the detected vertical grid mesh dy
    1515    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.