MATLAB: How to calculate the pdf (probability distribution function) of a data having dimension 25x31x122

3dMATLABpdf

Hi,
I have a data with rainfall value as dim of 25x31x122 and I want to calculate the pdf and plot it.
Can anyone suggest me how to do in matlab?

Best Answer

One way to do it is using the histogram-function, see the help and documentation. Something like this:
histogram(rainfall(:),min(rainfall(:)):max(rainfall(:)),'Normalization','pdf')
Or you could do the same/similar using ksdensity. But you surely have some type of variation (day-of-year?) in the different dimensions?
HTH