Matlab中hist3

  • 语法

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');

Matlab中hist3_第1张图片

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

句柄图像

Matlab中hist3_第2张图片

 

 

 

 

你可能感兴趣的:(科研小点)