How to get 3D histogram with marginal histograms

7 次查看(过去 30 天)
Hello,
I know about the scatterhist() function of the MATLAB, but is it possible to get marginal histograms on a bivariate tiled histogram, like the one presented below. Please help me with some examples. Thanks.
load carbig
X = [MPG,Weight];
hist3(X,'CdataMode','auto')
xlabel('MPG')
ylabel('Weight')
colorbar
view(2)

回答(1 个)

Torsten
Torsten 2022-3-25

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by