-3

Can anyone explain to me how to generate the Weibull distribution parameters k and c, in Matlab?

I have a file of 8000 data of wind speed, and I'd like to do the following:

  1. Generate the Weibull's k and c parameters of those.
  2. Plot the probability density function against the wind speed.

I am new in Matlab and have not yet been able to do this.

4

1 回答 1

3

如果你有统计工具箱,你可以使用fitdist

pd = fitdist(x,'Weibull')

x你的数据在哪里。我猜它应该返回参数ab在:

在此处输入图像描述

pdf然后,您可以使用该函数计算 pdf(并绘制它) 。的文档中有一些示例(尽管是正态分布)fitdist

于 2013-09-26T07:56:36.170 回答