How to convert data into a Rainflow histogram/table

조회 수: 3 (최근 30일)
Erfan Parviz
Erfan Parviz 2022년 12월 12일
댓글: Erfan Parviz 2022년 12월 28일
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?

답변 (1개)

C B
C B 2022년 12월 12일
% 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
plot(cycles);
% Create a histogram of the data
histogram(data);
  댓글 수: 1
Erfan Parviz
Erfan Parviz 2022년 12월 28일
Thank you for your answer. Now I want to extract data from the histogram into a table. For example I want to show for a certain x value we have a certian y value etc. I would appreciate your help. :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by