Hello,
I tried to use the function fitdist. The only result is an error:
Undefined function 'fitdist' for input arguments of type 'double'.
Error in FitaNormalDistributiontoDataExample (line 13) pd = fitdist(x,'Normal')
This was the result of running the code from help file: C:\Users\...\Documents\MATLAB\Examples\FitaNormalDistributiontoDataExample\FitaNormalDistributiontoDataExample.m
Load the sample data. Create a vector containing the patients' weight data.
load hospital
x = hospital.Weight;
Create a normal distribution object by fitting it to the data.
Plot the pdf of the distribution.
x_values = 50:1:250;
y = pdf(pd,x_values);
plot(x_values,y,'LineWidth',2)
What is wrong here?