how to create histogram
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Junaid Ahmed
el 8 de Jul. de 2021
Comentada: Junaid Ahmed
el 9 de Jul. de 2021
you can take any value of density just i wanna know to how to creat histogram of density
Each plot has different customization options.
Try creating a histogram of density with the histogram function.
Set the "FaceColor" to yellow ("y").
0 comentarios
Respuesta aceptada
DGM
el 8 de Jul. de 2021
Editada: DGM
el 8 de Jul. de 2021
density = randn(100);
h = histogram(density);
h.FaceColor = 'y';
% if you want to set other properties, take a look
get(h)
% if you're not sure what values are appropriate for certain properties
set(h)
% properties can be read/set using get/set
get(h,'FaceColor')
set(h,'FaceColor','b')
% or by using dot notation as in the initial example
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!
