freqTable(X,rval)

freqTable.m is a quick function to compute basic frequency statistics.
30 Downloads
Updated 6 Jan 2017

View License

freqTable.m is a function similar to hist.m in that it computes the frequency statistics. The stats are calculated for an entire vector (X) or each column in a matrix (X). If you wish to calculate the statistics of an entire matrix, use X(:). Outputs are the bin centres (x), frequency counts (f), and proportion values (p). The function includes an optional input (rval) to round all entries to multiples of the specified value (binning).
[x,f,p] = freqTable(X,rval)

Cite As

Shannon Locke (2025). freqTable(X,rval) (https://se.mathworks.com/matlabcentral/fileexchange/61023-freqtable-x-rval), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0