Ignore:
Timestamp:
Oct 15, 2010, 3:02:30 PM (14 years ago)
Author:
gostiaux
Message:

in R2009g, delaunayTri only works with double; TODO : check that the condition numrel>20 is valid of if this fix is also needed for previous versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/griddata_uvmat.m

    r19 r115  
    22%adapt the input of the matlab function griddata to the appropriate version of Matlab
    33function ZI = griddata_uvmat(X,Y,Z,XI,YI)
     4whos X Y Z XI YI
    45txt=ver;
    56Release=txt(1).Release;
    6 relnumb=str2num(Release(3:4));
    7 if relnumb >= 14
     7relnumb=str2num(Release(3:4))
     8if relnumb >= 20
     9    ZI=griddata(double(X),double(Y),double(Z),double(XI),double(YI),'linear',{'QJ'});
     10elseif relnumb >=14
    811    ZI=griddata(X,Y,Z,XI,YI,'linear',{'QJ'});
    9 else
     12else   
    1013    ZI=griddata(X,Y,Z,XI,YI,'linear');
    1114end
Note: See TracChangeset for help on using the changeset viewer.