plot 2d histogram in form of bin

1 次查看(过去 30 天)
I want to plot frequency of occurrence in form of chart like image given below. And i also want to define size of bins so range of data occurs in single bin.

采纳的回答

Steven Lord
Steven Lord 2017-8-20
Use the histogram2 function with 'DisplayStyle', 'tile' as shown in the "Tiled Histogram View" on the documentation page for histogram2.
  1 个评论
Mubashir
Mubashir 2017-8-23
thanks. I am using Matlab 2015a. So I use given code, where a0 and a1 are given data at time 1:
a=hist3d(a0,a1,t,xedges,yedges);
C=a;C(C==0)=NaN; %colormap
surface(xedges,yedges,a,C);
colorbar;

请先登录,再进行评论。

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by