语法

hist3(x)

hist3(x,nbins)

hist3(x,'Edges',edges)

N = hist3(x,...)

[N, C] = hist3(x,...)

hist3(...,param1, val1, param2, val2, ...)

例子

1---plot density histogram with intensity map

2--histogram with semi-transparent bars

半透明

3--histogram bars colored according to height

%%load the sample data

load carbig

x = [MPG,Weight];

hist3(x,[7 7]);

xlabel('MPG');ylabel('Weight');

set(gcf,'renderer','openg1');

74f43e27cad91f1a831a901eab560bd0.png

set(get(gca,'child'),'FaceColor','interp','CDataMode','auto');

句柄图像

40f94826cbb3abce35e6ce43916838ae.png

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐