Detabulate

版本 1.0.0.0 (1.6 KB) 作者: Skynet
DETABULATE(TABLE) converts frequency counts to the original population.
1.2K 次下载
更新时间 2005/12/1

查看许可证

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.]

引用格式

Skynet (2024). Detabulate (https://www.mathworks.com/matlabcentral/fileexchange/9179-detabulate), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

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