freqTable(X,rval)

freqTable.m is a quick function to compute basic frequency statistics.

You are now following this Submission

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 (2026). freqTable(X,rval) (https://www.mathworks.com/matlabcentral/fileexchange/61023-freqtable-x-rval), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0