PIVMat Function Reference<< Prev | Next >> 
azprofile
Azimuthal average a vector/scalar field.

Description
[A, P] = azprofile(S, X0, Y0, R), where S is a scalar field, returns the 
azimuthal profile of S taken along a circle of radius R centered on 
(X0, Y0) (given in physical units). A is the sampling angle array 
(between 0 and 2*pi) and P is the profile array sampled over the 
points (X, Y) = (X0+R*COS(A), Y0+R*SIN(A)). 
 
[A, UR, UT] = azprofile(V, X0, Y0, R), where V is a 2-component vector 
field, returns the radial UR and azimuthal UT components of the 
azimuthal profiles of V. 
 
[A, UR, UT, UZ] = azprofile(V, X0, Y0, R), where V is a 3-component 
vector field, returns the radial UR, azimuthal UT, and out-of-plane UZ, 
components of the azimuthal 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). 
 
... = azaverf(.., NA) specifies the length of the output arrays (if not 
specifed, a default length is choosen). 
 
Examples
 
   v = loadvec('*.vc7'); 
   [angle, ur, utheta] = azprofile(v, 0, 0, 40); 
   plot(angle, ur, 'r-', angle, utheta, 'b-'); 
   xlabel('angle (rad)');  ylabel('u_r,  u_\theta  (m/s)'); 
 
See Also
showf, azaverf, averf, spaverf, subaverf, filterf, 
vec2scal, rotatef, subsbr 
 
Published output in the Help browser 
   showdemo azprofile 

 Previous: azaverfNext: batchf 

2005-2016 PIVMat Toolbox 4.01