MATLAB: I have weibull parameters k = 2 and c = 10 m/s for wind speed, how to generate the frequency distribution of wind speed by applying Monte Carlo simulation with sample size N = 8000

MATLABstatistics

Best Answer

How about:
>> k = 2; c = 10;
>> d = rand(8000,1); r = (log(1./(1-d))).^(1/k)*c;
>> histogram(r)