Home > . > griddata_uvmat.m

# griddata_uvmat

## PURPOSE

'griddata_uvmat': function griddata_uvmat(vec2_X,vec2_Y,vec2_U,vec_X,vec_Y,'linear')

## SYNOPSIS

function ZI = griddata_uvmat(X,Y,Z,XI,YI)

## DESCRIPTION

    'griddata_uvmat': function griddata_uvmat(vec2_X,vec2_Y,vec2_U,vec_X,vec_Y,'linear')
    adapt the input of the matlab function griddata to the appropriate version of Matlab

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

- RUN_FIX 'RUN_FIX': function for fixing velocity fields:
- RUN_STLIN 'RUN_STLIN': combine velocity fields for stereo PIV
- proj_field 'proj_field': projects the field on a projection object
- proj_grid 'proj_grid': project fields with unstructured coordinantes on a regular grid
- sub_field 'sub_field': combines two input fields + mask for uvmat

## SOURCE CODE

    0001 %'griddata_uvmat': function griddata_uvmat(vec2_X,vec2_Y,vec2_U,vec_X,vec_Y,'linear')
    0002 %adapt the input of the matlab function griddata to the appropriate version of Matlab
    0003 function ZI = griddata_uvmat(X,Y,Z,XI,YI)
    0004 txt=ver;
    0005 Release=txt(1).Release;
    0006 relnumb=str2num(Release(3:4));
    0007 if relnumb >= 14
    0008     ZI=griddata(X,Y,Z,XI,YI,'linear',{'QJ'});
    0009 else
    0010     ZI=griddata(X,Y,Z,XI,YI,'linear');
    0011 end
    0012