The function is great.
Btw I've got a question: trying to cross-check results coming from your function and those from another software on the same time series, leads to different rfc. Within your function, half cycles are untreated (I mean being rounded up/down); the mismatch with the other software is located exactly there. Do you know any method to further process half cycles?
It is the hypergeometric function 2f1. You can find it as hypergeom in the newest Matlab releases, otherwise you should be able to find it in the File Exchange. I hope this helps.
Thank you for this script.
I think there is a mistake in the IEC 61400-1 implementation, the power spectrum for Kaimal should be with a 5/3 power and not a 5/6:
with Exp3=5/3
Moreover the calculated time series is artifically scaled to the desired mean & standard deviation, but the calculation output seems to be very far from the desired value. I therefore suspect an error in the code.
A lot of lines could be vectorized.
It is the hypergeometric function 2f1. You can find it as hypergeom in the newest Matlab releases, otherwise you should be able to find it in the File Exchange. I hope this helps.
Hello, Francesco Perrone, I downloaded your code and tried to run in Matlab. There is one error happened. "Undefined function or method 'pfq' for input arguments of type 'double'." in line 47. Could you please tell me what the command pfq is? Is a Matlab command only exist in Statistics Toolbox? Where can I get this pfq command? Thanks!
Thank you for this script.
I think there is a mistake in the IEC 61400-1 implementation, the power spectrum for Kaimal should be with a 5/3 power and not a 5/6:
PSD(i,IVec)=SigmaLU(IVec)/(1.0 + LU(IVec)*Freq(i))^Exp3
with Exp3=5/3
Moreover the calculated time series is artifically scaled to the desired mean & standard deviation, but the calculation output seems to be very far from the desired value. I therefore suspect an error in the code.
A lot of lines could be vectorized.
It is the hypergeometric function 2f1. You can find it as hypergeom in the newest Matlab releases, otherwise you should be able to find it in the File Exchange. I hope this helps.
Hello, Francesco Perrone, I downloaded your code and tried to run in Matlab. There is one error happened. "Undefined function or method 'pfq' for input arguments of type 'double'." in line 47. Could you please tell me what the command pfq is? Is a Matlab command only exist in Statistics Toolbox? Where can I get this pfq command? Thanks!
Comment only