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

Histogram of a vector/scalar field

H = **histf**(F) computes the histogram H of the field(s) F into 100
equally spaced bin. The appropriate range of bins is estimated from the
rms of the first field.
H = **histf**(F,BIN) computes the histograms among the bins specified by
the vector BIN. BIN can be in the form LINSPACE(-X,X,N).
If F is a 2-components vector field, use [HX, HY] = **histf**(F,..) to
compute the histogram for each component of the vector field.
Similarly, if F is a 3-components vector field, use
[HX, HY, HZ] = **histf**(F,..)
[...,BIN] = **histf**(...) also returns the bins vector BIN used for the
computation of the histogram. This is useful if BIN is estimated by
**histf** itself.
By default, **histf** considers the values 0 as erroneous, and does not
include them in the histogram. If however the values 0 are to be
included, specify **histf**(...,'0');

**Example**
v = loadvec('*.vc7');
[h,w] = **histf**(vec2scal(v,'rot'));
semilogy(w,h,'ro-');

**See Also**
histscal_disp, statf, corrf, vsf.
Published output in the Help browser
showdemo **histf**

Previous: gradientf | Next: histscal_disp |

2005-2016 PIVMat Toolbox 4.01