Resample function changed for R2019b ?

조회 수: 3 (최근 30일)
Semih Yikilmaz
Semih Yikilmaz 2019년 11월 20일
답변: Semih Yikilmaz 2019년 11월 30일
I try to use the resample function as described here:
I've written the code on an older version of Matlab. It worked back then.
For R2019b however the function has a completely different syntax it seems.
Is there an alternative?
% resample Redefine a time series based on a new time vector.
%
% TS = resample(TS,TIMEVEC) resamples the time series object TS on the
% new
% time vector TIMEVEC. When TIMEVEC is numeric, it is assumed to be
% specified relative to the TS.TimeInfo.StartDate property and in the same
% units as the time series TS uses. When TIMEVEC is an array of date
% strings, then it is used directly.
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 11월 20일
You are looking at the beginning of the information about the resample function for timeseries objects. The other one still exists. Check to be sure that you have the signal processing toolbox
Semih Yikilmaz
Semih Yikilmaz 2019년 11월 30일
I installed the signal processing toolbox and now it works. Thank you!

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

채택된 답변

Semih Yikilmaz
Semih Yikilmaz 2019년 11월 30일

추가 답변 (1개)

Priyanshu Mishra
Priyanshu Mishra 2019년 11월 27일
편집: Priyanshu Mishra 2019년 11월 27일
Hi Semih,
To resample time series time vector you may refer to following documentation page
The link you are referring to, requires signal processing toolbox. This will resample your uniform data to new fixed rate. So, there isn't any change in the new release.

카테고리

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