How to convert data into a Rainflow histogram/table
5 views (last 30 days)
Show older comments
Erfan Parviz on 12 Dec 2022
Commented: Erfan Parviz on 28 Dec 2022
Let’s say that I have a column of 3600 different values i y axis. And 3600 seconds in x axis. These values in y axis are stresses applied to a material and they change in amplitud. How do I make a Rainflow chart and histogram?
Chetan Bhavsar on 12 Dec 2022
% Sample time-history data with 3600 values
data = rand(1,3600);
% Convert the raw data into rainflow cycles
[cycles,mn,mx] = rainflow(data);
% Plot the rainflow cycles
% Create a histogram of the data
Find more on Vibration Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!