How do I show relative frequency on histogram?
Mostrar comentarios más antiguos
Okay, I am supposed to make 1000 random values between 1 to 10 and plot them on the histogram to show the relative frequency.
Also my nbins must be 50
I have..
data=rand(10.*rand(1000,1)+1) hist(data,50)
It puts data on the histogram, but how do I show the relative frequency?
Respuesta aceptada
Más respuestas (1)
Ben11
el 8 de Sept. de 2014
The relative frequency is supposed to show up on the y-axis...
what about this:
clear all
data= 10*rand(1,1000);
hist(data,50);

Categorías
Más información sobre Histograms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!