Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)

Respuesta aceptada

Alan Stevens
Alan Stevens el 17 de Jun. de 2020
How about:
>> k = 2; c = 10;
>> d = rand(8000,1); r = (log(1./(1-d))).^(1/k)*c;
>> histogram(r)
  1 comentario
Alan Stevens
Alan Stevens el 18 de Jun. de 2020
d are uniform random numbers between 0 and 1. r are the corresponding values obtained from the inverse of the Weibull CDF.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by