필터 지우기
필터 지우기

How to measure Peaks and Valleys of wave ?

조회 수: 9 (최근 30일)
khaled elbatawy
khaled elbatawy 2020년 8월 30일
댓글: khaled elbatawy 2020년 8월 30일
hello,
I want to measure the peaks and Valleys for wave siganls in different forms
And then save the Values of Peaks and Valleys in the same sequence in the wave
I know how to measure the Peaks but the the problem for me with the Valleys ,, and how to store them in sequence in array
For example for normal sine wave with amplitude 4000 , the result should be :
FR = 4000*sin(tt);
result = [4000 -4000 4000 -4000 4000 .... .... ...]
but the wave function can be also most of time not simple sine Function as this one
I need this to use it in the function of rainflow counting in Matlab, which it seems that this function in Matlab can not find the peaks and Valleys simply automaticilly
  댓글 수: 6
dpb
dpb 2020년 8월 30일
"So the x axis would be the time and the y axis would be the load value (in different sine form) what is impoertant for me to know all the turning points..."
We've no way to have any idea what you mean by the above; we don't have anything to go on but what you post whereas you know your problem space/definition inside and out.
I would guess there isn't any single simple solution if the form of the input function can vary drastically -- data analysis just generally isn't that straightforward. You may find some techniques that are reasonably robust for a given class of inputs but fail miserably on others...and other algorithms for other classes will likely behave the same.
First you have to define what it is that you want definitively-enough that somebody can recognize that request.
khaled elbatawy
khaled elbatawy 2020년 8월 30일
Thank you for suggestion !
For now i am working in sine wave + this wave function
tt = 0:0.001:10
for l=1:4002
FR(l) = sum(7000*sin(1*pi*([1:2:71])*tt(l))./([1:2:71]));
end
My problem is always with Rainflow counting in Matlab
If you have Knowledge or Advices how to get the right results of it or the best way to reach that , it would be so helpful for me

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

답변 (1개)

Star Strider
Star Strider 2020년 8월 30일
See if the Signal Processint Toolbox statelevels function will do what you want.

카테고리

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