I'm trying to make use of the weibull distribution function to find the spread of wind speeds for my dissertation project.I am also using the modified maximum likelihood theory to find the values for the scale and shape parameters.
The equations I have for each are as follows:
where k is the shape parameter and c the scale parameterI have constructed a script in MATLAB in order to try solve this with the wind speed data I have but for some reason I just cant seem to get the right values.Can anyone see where I may be going wrong?
data = xlsread('1.xlsx', 1, 'A2:A8076');
c = (((1/sum(data~=0))*(sum((V(:,q).^1.5)))))^(1/1.5)