"Findpeaks" function doesn't work

7 views (last 30 days)
Gil Gur Arie
Gil Gur Arie on 1 May 2017
Commented: Gil Gur Arie on 1 May 2017
when running the following code using Matlab on my PC: " x=[1,2,3,2,1]; [val,place]=findpeaks(x) " I get this error: Undefined function 'findpeaks' for input arguments of type 'double'.
however, when running the exact same code in my office (different license, different computer) it works just fine. I have had this problem in the past, and re-installing Matlab seemed to solve it. Now I have the same problem and I don't think re-installing it would be a proper solution. Any solution?

Accepted Answer

Jan
Jan on 1 May 2017
findpeaks belongs to the signal processing toolbox. If you do not have a license for this toolbox, you cannot run this command.
  1 Comment
Gil Gur Arie
Gil Gur Arie on 1 May 2017
I have the license but for some reason the toolbox was uninstalled. Thank you.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!