PIVMat Function Reference<< Prev | Next >> 
subaverf
Subtract the spatial or ensemble average of a field

Description
FF = subaverf(F) subtracts the spatial average from the vector/scalar 
field F. If F is an array of fields, subaverf(F) subtracts the 
individual spatial average from each field. 
 
FF = subaverf(F,AXIS) subtracts the spatial average (computed by 
spaverf), averaged over the direction AXIS, where AXIS='X', 'Y' or 
'XY'. Default is 'XY'. 
 
FF = subaverf(F,'e') subtracts from each F the field averaged over all 
F, as computed from averf. The field subtracted is an "ensemble" or 
"phase" or "temporal" average. 
 
If no output argument, the result is displayed by showf. 
 
Example
 
  v = loadvec('*.VC7'); 
  showf(subaverf(v,'e')); 
 
Note: To subtract both an ensemble average and a spatial average, use 
FF = operf('-', F, averf(spaverf(F,'...'))); 
 
See Also
averf, spaverf, azaverf. 
 
Published output in the Help browser 
   showdemo subaverf 

 Previous: statvec_dispNext: subsbr 

2005-2013 PIVMat Toolbox 2.12c