Code covered by the BSD License  

Highlights from
PIVMat 3.02

image thumbnail

PIVMat 3.02



27 Apr 2006 (Updated )

A PIV Post-processing and data analysis toolbox

azaverf (PIVMat Toolbox)
azaverf (PIVMat Toolbox)
PIVMat Function Reference<< Prev | Next >> 
Azimuthal average a vector/scalar field.

[R, P] = azaverf(S, X0, Y0), where S is a scalar field, returns the 
azimuthally-averaged profile P(R) of S with respect to the center 
X0, Y0 (given in physical units). The output vector R is the radius 
(in physical units), and the vector P is the profile.  If S is an array 
of N scalar fields, R and P are MxN matrix. Use PLOT(R, P) to plot the 
resulting profiles. 
[R, UR, UT] = azaverf(V, X0, Y0), where V is a 2-component vector field, 
returns the radial UR and azimuthal UT components of the azimuthally- 
averaged profiles of V. 
[R, UR, UT, UZ] = azaverf(V, X0, Y0), where V is a 3-component vector 
field, returns the radial UR, azimuthal UT, and out-of-plane UZ, 
components of the azimuthally- averaged profiles of V. 
The center (X0, Y0) does not need to be inside the field. If X0 and Y0 
are not specified, the point (0,0) is taken (in physical units). 
AF = azaverf(F, X0, Y0), where F is a scalar or a vector field, returns 
the azimuthally averaged field AF. If F is an array of fields, AF is 
also an array of fields of same dimension. If no output argument 
specified, the result is displayed with showf. 
... = azaverf(..,I0, J0, 'mesh') specifies the center (I0, J0) in mesh 
units instead of physical units (I0 and J0 do not need to be integer, 
and do not need to be inside the field). 
... = azaverf(.., 'rmax', RMAX) computes the profile for R<=RMAX only. 
RMAX is given in physical units, unless the argument 'mesh' is 
specified. This option saves computation time if large R are not 
By default, zero elements are considered as erroneous, and are not used 
for the computation of the azimuthal average. If however you want to 
keep them in the computation, specify  azaverf(...,'keepzero'). 
   [r,e] = azaverf(k,40,32,'mesh'); 
   xlabel('r (mm)');  ylabel('energy'); 
See Also
showf, averf, spaverf, subaverf, filterf, 
vec2scal, rotatef, subsbr 
Published output in the Help browser 
   showdemo azaverf 

 Previous: averfNext: batchf 

2005-2013 PIVMat Toolbox 3.02

Contact us