Re: Weibull distribution plot

7 Ansichten (letzte 30 Tage)
Albina H.
Albina H. am 18 Apr. 2012
Verschoben: John D'Errico am 9 Okt. 2023
Hi everyone,
I have something like 2000 samples (data recorded during 3 months) of wind speed from anemometer all saved in excel. How can I plot the distribution in MATLAB?

Antworten (1)

Lavan kumar
Lavan kumar am 19 Mai 2012
Hi, I know this is very late response. I just saw your question.. Sorry ;)
If you didn't solve your problem yet.. Here is the solution.. You can plot the distribution,
%%histogram and weibul
a= 8.1; % Scale factor
b= 3.4; % Shape factor
q1 = size(U); % No of wind measurements
[h1 x1] = hist(U,20); % histogram with 20 bins for clear visual effect
bar(x1,h1) % Make a histogram plot
hold on
w1=wblpdf(U,a,b); % Weibull
plot(U,w1*q1,'r')
  2 Kommentare
Dushyanth srimanthula
Dushyanth srimanthula am 20 Aug. 2019
Verschoben: John D'Errico am 9 Okt. 2023
i just want to know,
how did u give the scale and shape parameter with certain values???
Fernando Soto
Fernando Soto am 29 Mär. 2022
Verschoben: John D'Errico am 9 Okt. 2023
One way to obtain c is the following:
c = 1.12u
where u is the mean velocity of your data
k = (〖s/u)〗^(-1.086)…. in which s is the standard deviation

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by