RAINFLOWcyclecou
ti
g
RAINFLOWcou
ti
gfu
ctio
allowsyoutoextract
cyclefromra
domloadi
g
SYNTAX
rfRAINFLOWext
rfRAINFLOWextdt
rfRAINFLOWextextt
OUTPUT
rfrai
flowcyclesmatrix3x
or5x
depe
de
do
i
put
rf1Cyclesamplitude
rf2Cyclesmea
value
rf3Numberofcycles05or10
rf4Begi
i
gtimewhe
i
puti
cludesdtorexttdata
rf5Cycleperiodwhe
i
puti
cludesdtorexttdata
INPUT
extsig
alpoi
tsvector
x1ONLYTURNINGPOINTS
dtsampli
gtimepositive
umberwhe
thetur
i
gpoi
ts
spacedequally
exttsig
altimevector
x1exacttimeofoccurre
ceoftur
i
gpoi
ts
SeealsoSIG2EXTRFHISTRFMATRIXRFPDF3D
RAINFLOWCopyrightc19992002byAdamNieslo
yMEXfu
ctio
fu
ctio
rfdemo1ext
fu
ctio
rfdemo1ext
RFDEMO1showscyclesextractedfromsig
al
usi
grai
flowalgoritm
INPUTextoptio
umberorvectorswithtur
i
g
poi
tsortimehistoryDefaultext16
fOUTPUT
oe
able
SYNTAX
rfdemo1
rfdemo110
rfdemo123242516
ByAdamNies
yRevised10Nov2009VisittheMATLABCe
tralFileExcha
geforlatestversio
error
argchk02
argi
if
argi
0tur
i
gpoi
tsfrom16ra
dom
umbersextsig2extra
d
4
elseifle
gthext1tur
i
gpoi
tsfrom
ra
dom
umbersextsig2extra
d
1ext
elsetur
i
gpoi
tsfromvectorextextsig2extext
e
d
arai
flowext1m
sizea
if
100
butto
questdlgRai
flowfou
d
um2strsuma3cyclesDoyouwa
tto
co
ti
ue
Co
ti
ueOperatio
YesNoNo
ifstrcmpbutto
No
errorFu
ctio
abortedbyuser
e
d
e
d
colymcrgbplot0le
gthext1extkholdo
wyk00051forc1
col
rremc161
f
r1rou
da4c1
r2rou
da4c1a5ca3cifa3c10
ifext
r1ext
r11plotwyka5ca4ccospiwyk2pia1ca2ccolcol
rtexta4ca2ca1ci
t2strcCycleupColorcolcol
rVerticalAlig
me
ttop
elseplotwyka5ca4ccoswyk2pia1ca2ccolcol
rtexta4ca2ca1ci
t2strcCycledow
Colorcolcol
rVerticalAlig
me
tbottom
e
delse
ifext
r1ext
r2plotwyka5c05a4ccoswykpia1ca2ccolcol
rtexta4ca2ca1ci
t2strcHalfcycledow
Colorcolcol
rVerticalAlig
me
tbottom
elseplotwyka5c05a4ccospiwykpia1ca2ccolcol
rtexta4ca2ca1ci
t2strcHalfcycleupColorcolcol
rVerticalAlig
me
ttop
e
de
de
dxlabelpeakscou
tedfrom0ylabelvaluetitleRai
flowcyclesextractedfromsig
allege
dpeaksfromsig
al0holdoff
dispRow1amplitudedispRow2mea
dispRow3
umberofcyclesr