Getting better pdf and histogram

2 views (last 30 days)
Nathaniel Porter
Nathaniel Porter on 24 Feb 2022
Commented: Image Analyst on 24 Feb 2022
load InsulinReadings.mat
xX2 = InsulinReadings;
xX2(xX2==0)=missing;
A2 = mean(xX2,'all',"omitnan")
B2 = median(xX2,'all',"omitnan")
C2 = max(xX2,[],'all',"omitnan")
D2 = min(xX2,[],'all', "omitnan")
histogram(xX2)
[D PD] = allfitdist(xX2,'PDF');
xlabel('Insulin');
%Now get the CDF
[D PD] = allfitdist(xX2,'CDF');
xlabel('Insulin')

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by