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 Center および File ExchangeVibration Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by