export frequency data from a histogram
40 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
P_L
el 16 de Abr. de 2019
Comentada: Star Strider
el 27 de Nov. de 2020
Hi there, I have a histogram that looks like this:
and I would like to extract the frequency data (y-data) so I can make a seperate plot with points.
Any help would bge much appreciated
Many thanks
0 comentarios
Respuesta aceptada
Star Strider
el 16 de Abr. de 2019
Use a handle to return the information from the histogram function, then get the values you want:
figure
hh = histogram(x);
edges = hh.BinEdges;
counts = hh.BinCounts;
values = hh.Values;
5 comentarios
James Hughes
el 26 de Nov. de 2020
What's the difference between BinCounts and Values? They seem to be the same.
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!