Histogram fit with curved fitting

조회 수: 7 (최근 30일)
DANIEL KONG LEN HAO
DANIEL KONG LEN HAO 2021년 9월 16일
댓글: DANIEL KONG LEN HAO 2021년 9월 16일
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?

채택된 답변

KSSV
KSSV 2021년 9월 16일
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
KSSV
KSSV 2021년 9월 16일
REad about kernel in histfit.
DANIEL KONG LEN HAO
DANIEL KONG LEN HAO 2021년 9월 16일
Alright, thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by