필터 지우기
필터 지우기

Time interval between samples

조회 수: 1 (최근 30일)
SCuri
SCuri 2019년 3월 6일
댓글: Star Strider 2019년 3월 6일
I have a strain data set from the LIGO detectors. It is a [1 x 1 ] struct with 16777216 length, with values like -2.343424e-16.
How to I find the time period between two signal of this data?
I tried using diff() but I didn't get the desired output.
  댓글 수: 2
SCuri
SCuri 2019년 3월 6일
I hav attached an image of the errorI am getting. The value of ts = 2.4414e-04. I think the error is because of this value. How do I proceed?
Star Strider
Star Strider 2019년 3월 6일
The error indicates that you are using int64 data. You either must use integer int64 operands, as the error indicates, or convert your data to double. You may lose some precision going from int64 to double, since int64 is defined as: [], while double is defined as having 51-bit mantissas. You need to decide if that is acceptable with your data.

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

채택된 답변

Star Strider
Star Strider 2019년 3월 6일
It would help to know what your data are. Lacking that, and finding the Wikipedia article on LIGO (link), you may have spikes in your data, or other kinds of repeating signals.
If so, your best option is likely the Signal Processing Toolbox findpeaks (link) function. You may need to filter your data first, to get rid of some of the high-frequency noise. If so, and if you need help designing the filter, attach a representative file of your data to your original Question or to a Comment to it.
  댓글 수: 2
SCuri
SCuri 2019년 3월 6일
Thank you so much! Your advice helped a lot. :)
Star Strider
Star Strider 2019년 3월 6일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by