필터 지우기
필터 지우기

What start time is assumed in Matlab's resample function?

조회 수: 2 (최근 30일)
KAE
KAE 2017년 2월 16일
댓글: Greg Dionne 2017년 3월 16일
When I use Matlab's resample function, what start time is assumed for the resampled time vector? All the plots and examples in the documentation seem to show the resampled time vector starting at the same initial time as the original vector, i.e. they both start at t=0. Is this correct?
  댓글 수: 1
KAE
KAE 2017년 2월 17일
편집: KAE 2017년 2월 17일
I am padding my time series at both ends to move end effects away from the "real" data, and the results do indicate that the first time sample of the resampled data is the same as the first time sample of the original data. But I'd love "official" confirmation of this.

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

채택된 답변

Greg Dionne
Greg Dionne 2017년 2월 28일
All except for the datetime object variant (where the first sample datetime is copied to the output).
  댓글 수: 4
KAE
KAE 2017년 3월 13일
I think you are referring to the example here called 'Resample a Nonuniformly Sampled Data Set', so my interpretation of your answer to the title question is: "When you resample, the first element of the time vector is indeed the same as the first element of the initial time vector, unless you specify the output times." Did I interpret your answer correctly? Sorry to come back with all these clarification requests.
Greg Dionne
Greg Dionne 2017년 3월 16일
That seems right to me. BTW, if you ever need get clarification or give feedback on the doc page from the MathWorks you can click on that "Was this topic helpful?" on the lower right portion of the doc page.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by