2D weighted histogram

版本 1.0.0.0 (3.9 KB) 作者: Johannes
Calculates 2D weighted histogram and plots in color
1.3K 次下载
更新时间 2014/3/25

查看许可证

This function calculates a 2D, weighted histogram from:
(1) an Nx2 matrix of 2D data points
(2) an Nx1 vector of weights
(3) M_1x1 and M_2x1 grid vectors

There is an option to plot the histogram in color using the "bar3c" function (included). The coloring is specified by either:

(1) an RGB tensor of size M_1xM_2x3 or
(2) a Kx3 colormap matrix

This is useful for visualizing a weighted dataset in probabilistic algorithms like EM and the particle filter.

引用格式

Johannes (2025). 2D weighted histogram (https://ww2.mathworks.cn/matlabcentral/fileexchange/46012-2d-weighted-histogram), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

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