Extraction of waves from surface elevation?
조회 수: 3 (최근 30일)
이전 댓글 표시
How would I go about extracting individual waves from surface elevation time series data? Basically I want to plot the x largest waves on one graph to compare, so would need them extracted individually.
Thanks for any help!!
댓글 수: 0
답변 (1개)
Star Strider
2016년 8월 30일
Guessing here because I have no idea what your data actually are, but findpeaks comes quickly to mind.
댓글 수: 2
Star Strider
2016년 8월 30일
My pleasure!
To get the troughs, use findpeaks on the negative of your data. This would give you the minima, that should be the beginning of the upslope of each wave.
If your data have high-frequency noise, filtering them first with a low-pass filter might work best. There are various ways to design filters in MATLAB, among them being designfilt. My procedure for IIR filters is here: How to design a lowpass filter for ocean wave data in Matlab?
참고 항목
카테고리
Help Center 및 File Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!