How do I plot Cycle Range vs Number of Cycles in rainflow ?

Hi All
doing the command
TT = timetable(t,X);
rainflow(TT);
we get a 3D rainflow diaghram. but if I do :
[c1,hist,edges,rmm,idx] = rainflow(X,t);
TT1 = array2table(c1,'VariableNames',{'Count','Range','Mean','Start','End'});
I get only the cycles for each Cycle counts , so number of cycles are always 0.5 or 1.
How do I get a sort of cumulative number of cycles, as what I see in the Cycle Range vs Number of Cycles in 3D rainflow plot ?
I need to eventually plot this :
from this3Dcase :

6 Comments

It sounds to be hist, that inidcates the cycles repetitions, but since its an nxm matrix , I don't know how to use it to draw the Range vs num Cycles 2D graph
Hist is indicating each block in the 3D diagram, but it's not clear how to gather all hist values under one 2D diagram together with the range values that are more in number with respect to Hist members
Is it reasonable to sum "hist" columns for each row that have the same range ?
I just don't know how to make a 2D plot of bars , using barh having the values of two axes

Sign in to comment.

Answers (0)

Categories

Asked:

on 27 Apr 2020

Commented:

K G
on 27 Mar 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!