PIVMat Function Reference | << Prev | Next >> |

Spatial average over X and/or Y of a vector/scalar field

FF = **spaverf**(F) computes the spatial average of the vector/scalar
field F. FF is a uniform vector/scalar field. If F is an array of
fields, **spaverf**(F) computes the individual spatial average of each
field.
FF = **spaverf**(F,AXIS) averages over the AXIS direction, where AXIS is
'X', 'Y' or 'XY'. Default is 'XY'. FF is a vector/scalar field uniform
in the AXIS direction.
By default, **spaverf** considers that the zero elements of F are erroneous,
and does not include them in the computations. If however you want to
force the zero elements to be included in the computations, specify
**spaverf**(F,'0').
If no output argument, the result is displayed by showf.

**See Also**
smoothf, averf, subaverf, azaverf.
Published output in the Help browser
showdemo **spaverf**

Previous: spatiotempf | Next: spec2f |

2005-2017 PIVMat Toolbox 4.10