Fitting a curve on normalized histogram

3 次查看(过去 30 天)
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
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 ?

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by