Effacer les filtres
Effacer les filtres

Histogram fit with curved fitting

1 vue (au cours des 30 derniers jours)
DANIEL KONG LEN HAO
DANIEL KONG LEN HAO le 16 Sep 2021
I'm using histfit(Dataset1) to plot for the data set as shown below and I realised that the hisfit function sets the curve as normal by default. Is there any way I can make the distribution curve not to be normal but plot it based on the original skewness of the data?

Réponse acceptée

KSSV
KSSV le 16 Sep 2021
You are expecting like this?
v = randn(1000,1) ;
h = histogram(v) ;
i = h.BinEdges ;
x = mean([i(1:end-1)' i(2:end)'],2) ;
y = h.Values ;
hold on
plot(x,y)
  3 commentaires
KSSV
KSSV le 16 Sep 2021
REad about kernel in histfit.
DANIEL KONG LEN HAO
DANIEL KONG LEN HAO le 16 Sep 2021
Alright, thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by