Creating a Bell Curve of Data
120 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Claire Hollow
el 17 de Jun. de 2020
Comentada: Claire Hollow
el 17 de Jun. de 2020
Hello. I have a large set of temperature observations called tmax (26298x1 double) and I want to make a bell curve of all the data to see what it looks like. I've done a lot of browsing and can't find a simple way to do this. Does anyone have help on this? Thank you!
Respuesta aceptada
David Hill
el 17 de Jun. de 2020
Editada: David Hill
el 17 de Jun. de 2020
Just looking at your data, histogram() function is useful.
histogram(tmax01,30);%however many bins you want
You could overlay:
pd = fitdist(tmax01,'Normal');
x_values = min(tmax01):.1:max(tmax01);%not sure what step to use
y = pdf(pd,x_values);
hold on;
plot(x_values,y,'LineWidth',2);
histogram(tmax01,30);
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!