If you are running MatLAB R2012b on a Macbook you can follow the link below in order to use the rainflow.c script:
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:
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)
The link in your README to download MSVS2008 no longer works
I downloaded it from http://www.baixaki.com.br/download/visual-c-2008-express-editions.htm (but it's in Portuguese)
and Windows SDK for Windows Server 2008 and .NET Framework 3.5 from http://www.microsoft.com/en-us/download/details.aspx?id=11310