필터 지우기
필터 지우기

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

조회 수: 2 (최근 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