hi
is there any illustration for using this code, i have mat include for max and min strain for each cycle. can use this code for counting depending on this information and how?
If you are running MatLAB R2012b on a Macbook you can follow the link below in order to use the rainflow.c script:
http://www.mathworks.se/support/solutions/en/data/1-FR6LXJ/
It will guide you how to install Xcode, patch it and then you are ready to compile your mex file for Matlab by writing this in your command window:
mex rainflow.c
I'm currently running MatLAB R2012b on my Macbook Pro, but I'm having trouble running the script. Is there a rainflow.mexOSX? When I'm running rfdemo1.m it gives me this error:
Undefined function 'rainflow' for input arguments of type 'double'.
Error in rfdemo1 (line 35)
a=rainflow(ext,1);
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?
Comment only