Mean of probability distribution object
m = mean(pd)
Load the sample data. Create a probability distribution object by fitting a kernel distribution to the miles per gallon (MPG) data.
load carsmall; pd = fitdist(MPG,'Kernel')
pd = KernelDistribution Kernel = normal Bandwidth = 4.11428 Support = unbounded
Compute the mean of the distribution.
ans = 23.7181