PIVMat Function Reference<< Prev | Next >> 
remapf
Remap a vector/scalar field to a new grid.

Description
RF = remapf(F, X, Y) remap the vector/scalar field(s) F to a new 
grid defined by the vectors X and Y (expressed in the same units as the 
original axis, usually in millimeters). 
 
For instance, suppose you have a field F defined on a 64x64 grid, with 
X ranging from 20 to 120 mm and Y from 20 to 100 mm. If you want to 
remap your data onto a larger grid of 128x128 points, with X from 0 to 
150 and Y from 0 to 100, do the following: 
   RF = remapf(F, linspace(0,150,128), linspace(0,100, 128)); 
Careful: you have to provide appropriate values if you want to conserve 
the aspect ratio of the original field. 
 
If the new grid is larger than the old grid, the remapped field is 
filled with zeros. 
 
The remap is based on Matlab's built-in function GRIDDATA. 
 
If no output argument, the result is displayed by showf. 
 
See Also
extractf, rotatef, resizef, flipf, shiftf, setoriginf. 
Published output in the Help browser 
   showdemo remapf 
 

 Previous: readvecNext: renamefile 

2005-2021 PIVMat Toolbox 4.20