Detabulate

DETABULATE(TABLE) converts frequency counts to the original population.

You are now following this Submission

POPULATION = DETABULATE(TABLE), where the first column of the matrix TABLE contains values, and the second column contains respective frequency counts, returns the original population matrix (POPULATION). In this manner, its functionality is reverse that of the Statistics toolbox function TABLULATE.

Note: This code is vectorized.

Example:

detabulate([1 1; 2 3; 4 0; 5 2])
returns [1; 2; 2; 2; 5; 5]

[Please subscribe to this file if you use it, so you can be notified of updates.]

Cite As

Skynet (2026). Detabulate (https://www.mathworks.com/matlabcentral/fileexchange/9179-detabulate), 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

Vectorized code for increased efficiency, thanks to code supplied by Jos vdG.