what is the equivalent function in 2014b for resample()?

조회 수: 4 (최근 30일)
roudan
roudan 2017년 12월 11일
댓글: Star Strider 2017년 12월 11일
Hi
resample() function is not available in version 2014b. could anyone point me some equivalent functions? Basically, what I am trying to do is to divide one time series vector by the other time series vector with different size. One vector has random dates and the other vector has daily data. so I am thinking to convert the first vector into daily data so I can use ./ . Originally, I was thinking to do like this resample(A, length(B), length(A)). Any ideas? I appreciate it.
  댓글 수: 2
Star Strider
Star Strider 2017년 12월 11일
The Signal Processing Toolbox version of the resample function was introduced before R2006a.
Is that the one you want to use?
roudan
roudan 2017년 12월 11일
Thanks Star Strider. I don't have signal processing toolbox installed. Any other alternative solutions? Thanks a lot.

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

채택된 답변

Star Strider
Star Strider 2017년 12월 11일
I apologize for the confusion. I didn’t read your Question closely enough.
The resample (link) function for timeseries (link) data was introduced before R2006a as well. You should have it.
  댓글 수: 2
roudan
roudan 2017년 12월 11일
편집: roudan 2017년 12월 11일
Thanks Star Strider. I appreciate your help. One more question, after using resample(), how can I convert timeseries data back to normal vector? I'd like to do division between this timeseries and another vector? Thanks
Star Strider
Star Strider 2017년 12월 11일
I rarely use timeseries objects.
I would use the getdatasamples (link) function to extract them to an array.
The related getsamples function returns a structure.

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

추가 답변 (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