Matlab: generate random numbers from custom made probability density function
I have a dataset with 3-hourly precipitation amounts for the month of January in the period 1977-1983 (see attachment). However, I want to generate precipitation data for the period 1984-1990 based upon these data. Therefore, I was wondering if it would be possible to create a custom made probability density function of the precipitation amounts (1977-1983) and from this, generate random numbers (precipitation data) for the desired period (1984-1990). Is this possible in Matlab and could someone help me by doing so? Thanks in advance! A histogram will give you an estimate of the PDF -- just