detrend not running proper?

2 ビュー (過去 30 日間)
guru k
guru k 2020 年 3 月 5 日
コメント済み: guru k 2020 年 3 月 8 日
when we try to run the example given in Matlb help it is not getting executed. The code is
t = -10:10;
x = t.^3 + 6*t.^2 + 4*t + 3;
bp = 0;
y = detrend(x,1,bp,'SamplePoints',t,'Continuous',false);
plot(t,x,t,y,t,x-y,':k')
The error coming is
Error using detrend
Too many input arguments.
Please help in coming out of the issue...
  1 件のコメント
Bhaskar R
Bhaskar R 2020 年 3 月 5 日
I am not getting any error, which version of MATLAB are you using ?
apply clear all command before you execute your script

サインインしてコメントする。

回答 (1 件)

Steven Lord
Steven Lord 2020 年 3 月 5 日
Some of the functionality you're trying to use was introduced in release R2019a. You're likely using an older release. Check if the options 'SamplePoints' and 'Continuous' are listed in the documentation for detrend included in your installation since the online documentation is for the most recent release.
doc detrend
  1 件のコメント
guru k
guru k 2020 年 3 月 8 日
Thank you for your post. We have revised the version which solved the issue.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by