Last change
on this file since 229 was
147,
checked in by gostiaux, 14 years ago
|
cleaning code for the detection of matlab version.
|
File size:
521 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)
|
---|
[147] | 4 | txt=ver('MATLAB');
|
---|
| 5 | Release=txt.Release;
|
---|
[116] | 6 | relnumb=str2num(Release(3:4));
|
---|
[115] | 7 | if relnumb >= 20
|
---|
| 8 | ZI=griddata(double(X),double(Y),double(Z),double(XI),double(YI),'linear',{'QJ'});
|
---|
| 9 | elseif relnumb >=14
|
---|
[7] | 10 | ZI=griddata(X,Y,Z,XI,YI,'linear',{'QJ'});
|
---|
[115] | 11 | else
|
---|
[7] | 12 | ZI=griddata(X,Y,Z,XI,YI,'linear');
|
---|
| 13 | end
|
---|
| 14 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.