フィルターのクリア

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

3 ビュー (過去 30 日間)

採用された回答

Alan Stevens
Alan Stevens 2020 年 6 月 17 日
How about:
>> k = 2; c = 10;
>> d = rand(8000,1); r = (log(1./(1-d))).^(1/k)*c;
>> histogram(r)
  1 件のコメント
Alan Stevens
Alan Stevens 2020 年 6 月 18 日
d are uniform random numbers between 0 and 1. r are the corresponding values obtained from the inverse of the Weibull CDF.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by