Borrar filtros
Borrar filtros

plot 2d histogram in form of bin

1 visualización (últimos 30 días)
Mubashir
Mubashir el 20 de Ag. de 2017
Comentada: Mubashir el 23 de Ag. de 2017
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.

Respuesta aceptada

Steven Lord
Steven Lord el 20 de Ag. de 2017
Use the histogram2 function with 'DisplayStyle', 'tile' as shown in the "Tiled Histogram View" on the documentation page for histogram2.
  1 comentario
Mubashir
Mubashir el 23 de Ag. de 2017
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;

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by