필터 지우기
필터 지우기

Warning with the intrinsic detrend function.

조회 수: 1 (최근 30일)
noquinhas
noquinhas 2019년 10월 8일
댓글: noquinhas 2019년 10월 8일
Hello,
I want to use the detrend function to remove the continuous quadratic trend but I keep getting this error:
Warning: Invalid trend type '2'.. assuming 'linear'.
> In detrend (line 52)
Even when I use the example provided here I get the same warning. My MATLAB version is R2018b.
Perhaps there is something I can do? I don't have any function overwritting this.
Thank you!

채택된 답변

Steven Lord
Steven Lord 2019년 10월 8일
According to the Release Notes the ability to remove piecewise polynomial trends for higher degree polynomials was introduced in release R2019a. From the documentation for detrend in release R2018b the only allowed second inputs to the function in that release are 'constant' and 'linear'.
The online documentation is for the most recent release (currently release R2019b) and so may describe functionality not present in the release you're using if you're using an older release.
  댓글 수: 1
noquinhas
noquinhas 2019년 10월 8일
Ok, that makes sense :)
Thank you so much for your reply.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by