Last change
on this file since 115 was
115,
checked in by gostiaux, 14 years ago
|
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 size:
531 bytes
|
Rev | Line | |
---|
[7] | 1 | %'griddata_uvmat': function griddata_uvmat(vec2_X,vec2_Y,vec2_U,vec_X,vec_Y,'linear')
|
---|
| 2 | %adapt the input of the matlab function griddata to the appropriate version of Matlab
|
---|
| 3 | function ZI = griddata_uvmat(X,Y,Z,XI,YI)
|
---|
[115] | 4 | whos X Y Z XI YI
|
---|
[7] | 5 | txt=ver;
|
---|
| 6 | Release=txt(1).Release;
|
---|
[115] | 7 | relnumb=str2num(Release(3:4))
|
---|
| 8 | if relnumb >= 20
|
---|
| 9 | ZI=griddata(double(X),double(Y),double(Z),double(XI),double(YI),'linear',{'QJ'});
|
---|
| 10 | elseif relnumb >=14
|
---|
[7] | 11 | ZI=griddata(X,Y,Z,XI,YI,'linear',{'QJ'});
|
---|
[115] | 12 | else
|
---|
[7] | 13 | ZI=griddata(X,Y,Z,XI,YI,'linear');
|
---|
| 14 | end
|
---|
| 15 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.