How can I plot a trendline that follows the peaks a time-history data set (accelerogram)?

조회 수: 10 (최근 30일)
Hello all,
I'd like to calculate the damping ratio of a structure based on acceleration data.
To do so I usually take the logarithmic decrement of a nice sinusoidal wave. However, in certain cases I obtain waves that do not allow me to do so easily thus I would like to create a trend line that follows the peaks as shown in the PDF attached. With this curve I could estimate the overall damping of the structure.
The image below shows graphically what I would like to do.
Thank you in advance

답변 (1개)

Star Strider
Star Strider 2021년 7월 22일
The envelope function could do what you want.
Another option is findpeaks, with the appropriate name-value pair arguments.
Both are Signal Processing Toolbox functions.
.
  댓글 수: 2
Joshua Castellanos
Joshua Castellanos 2021년 7월 23일
Thank you, I'll give it a try and update the status of my question accordingly.
Star Strider
Star Strider 2021년 7월 23일
My pleasure!
If I had the signal itself, I could provide actual code. It might be necessary to use a lowpass filter first to eliminate the high-frequency parts of the signal. Determine the best cutoff ffrequency by first performing a Fourier transform of the signal with the fft function.
.

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

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by