Borrar filtros
Borrar filtros

Fitting a curve on normalized histogram

4 visualizaciones (últimos 30 días)
Ankush Kumar Mishra
Ankush Kumar Mishra el 4 de Abr. de 2022
Editada: Torsten el 4 de Abr. de 2022
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')

Respuestas (1)

Torsten
Torsten el 4 de Abr. de 2022
Editada: Torsten el 4 de Abr. de 2022
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 ?

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by