I don't know why the answer to this question was deleted, but I hope someone else checks this question
How can I make the cycle range symmetric around zero in rainflow ?
3 次查看(过去 30 天)
显示 更早的评论
Hi All
I am using
rainflow( x, 'ext')
but the cycle ranges are not symmetric around zero. How can I make matlab do that ?
This is what I get from RainFlow command :
As you see it seems like you are watching the graph from behind
instead , normally this is what I see as a histogram on internet you can see how the Cycle mean and Cycle average are swapped
采纳的回答
Star Strider
2019-12-25
After all that (and deleting my first Answer because it was not solving the problem), the solution appears to have turned out to be relatively simple.
This uses an example from the rainflow documentation (specifically, Cycle Counts of Timetable). Try it with your own data:
fs = 100;
t = seconds(0:1/fs:100-1/fs)';
x = randn(size(t));
TT = timetable(t,x);
figure
rainflow(TT) % Original
figure
rainflow(TT)
set(gca, 'View',[60 30]) % Rotated Using A Simple View Call To The Last Plotted Axes
producing this originally:
and after the rotation:
2 个评论
Star Strider
2019-12-25
As always, my pleasure!
I deleted my Answer so someone else could contribute, since my previous attempts were not successful. It turned out that I was just over-thinking this problem.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vibration Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!