How to detrend data in Matlab2013a

Hello, I type 'det_s=detrend(s);'but I get a warning saying Error using detrend (line 24) Wrong # of arguments to detrend. Please how do I do it?

1 Comment

Looks like you've probably aliased the builtin detrend function...
What do the commands
which detrend
whos detrend
return?
Try
clear detrend
then try the function again...

Sign in to comment.

Answers (0)

Tags

Asked:

on 13 Aug 2017

Commented:

dpb
on 13 Aug 2017

Community Treasure Hunt

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

Start Hunting!