%if true
x = 0:0.1:10;
y = wblpdf(x,3,2)
Use the weibull pdf function shown above and obtain the likelihood at each wind speed bin. I presume you have 10 min averaged data for wind speed.
Then obtain the hours distribution of each wind speed by taking successive wind speed bin averages.
Then mutlply the hours distribution of each wind speed with corresponding power values of power curve to get the energy in kWh at every wind speed.
Finally sum all the energy values for all wind speeds to get energy yield for period.
NOTE: You need scale and shape factor for the site data available with you