Ignore:
Timestamp:
May 29, 2012, 11:02:08 PM (12 years ago)
Author:
sommeria
Message:

corrections in the use of get_field
test_tps introduced, to test thin plate shell functions
tps-eval_dxy corrected (bug on the calculation of the derivatives fixed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tps_eval_dxy.m

    r356 r434  
    3131 
    3232[Dsites,Ctrs] = ndgrid(dsites(:,1),ctrs(:,1));%d coordinates of interpolation points (Dsites) and initial points (Ctrs)
    33 DX=Dsites-Ctrs;
     33DX=Dsites-Ctrs;% set of x wise distances between sites and centres
    3434[Dsites,Ctrs] = ndgrid(dsites(:,2),ctrs(:,2));%d coordinates of interpolation points (Dsites) and initial points (Ctrs)
    35 DY=Dsites-Ctrs;
     35DY=Dsites-Ctrs;% set of y wise distances between sites and centres
    3636DM = DX.*DX + DY.*DY;% add d component squared
    3737
     
    4040
    4141DMX=[DX.*DM zeros(M,1)  ones(M,1) zeros(M,1)];% effect of mean gradient
    42 DMY=[DY.*DM zeros(M,1)  ones(M,1) zeros(M,1)];% effect of mean gradient
     42DMY=[DY.*DM zeros(M,1)  zeros(M,1) ones(M,1)];% effect of mean gradient
    4343
Note: See TracChangeset for help on using the changeset viewer.