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일

0 개 추천

Use the histogram2 function with 'DisplayStyle', 'tile' as shown in the "Tiled Histogram View" on the documentation page for histogram2.

댓글 수: 1

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개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

태그

질문:

2017년 8월 20일

댓글:

2017년 8월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by