Fitting a curve on normalized histogram

I am looking to plot a curve on normalized histogram something like this? What to do? My code till now
X = wblrnd(5,5, 1, 1000);
Z = X- 1;
figure('DefaultAxesFontSize',18);
P = histogram(Z,'Normalization','pdf');
hold on
xlabel('RUL')
ylabel ('Density')

답변 (1개)

Torsten
Torsten 2022년 4월 4일
편집: Torsten 2022년 4월 4일

0 개 추천

You can directly calculate the distribution of Z from the distribution of X and plot its PDF.
Or do you only have a discrete number of data points and want to fit a suitable PDF to them ?

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2022년 4월 4일

편집:

2022년 4월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by