problem with findpeaks in R2016a

The following works fine in R2015b, but not in R2016a (neither by live editor nor by command line)
[pks,locs,widths,proms]=findpeaks(A12ratio, x, 'MinPeakProminence', MPP);
In R2016a I get:
"Undefined function 'findpeaks' for input arguments of type 'double'."
Is this a known problem? Is there a workaround besides simply going back to using R2015b??

Antworten (2)

Steven Lord
Steven Lord am 30 Mär. 2016
Bearbeitet: Steven Lord am 30 Mär. 2016

0 Stimmen

The findpeaks function is in Signal Processing Toolbox. It's possible you had this toolbox installed in your installation of release R2015b but don't have it installed in your installation of release R2016a.

3 Kommentare

John Ondov
John Ondov am 30 Mär. 2016
It turns out that I do have the signal processing tool box. Some of its functions work (unless they are duplicated elsewhere). I understand that typing ver at the command line gives a list of available tool boxes. If so, then signal tool box is available. I do appreciate the thought!
Steven Lord
Steven Lord am 31 Mär. 2016
In that case, if you're using a network license it's possible all the license keys for Signal Processing Toolbox are checked out right now. Your license administrator could check this for you (if they're not sure how, ask them to take a look at page 3-61 of the Installation Guide.)
John Ondov
John Ondov am 24 Apr. 2016
In case anyone else has this problem, it turned out to be a problem with the way R2016a deals with our University server array. At least, that's what our IT fellows told me after contacting MathSoft. As of April 20, 2016, it was not yet resolved. I'm back using R2015b until it is. That works just fine!

Melden Sie sich an, um zu kommentieren.

Star Strider
Star Strider am 30 Mär. 2016

0 Stimmen

You did install the Signal Processing Toolbox when you upgraded to R2016a, correct?
Assuming you did, my guess is that you have a path problem.
Try typing this from the Command Window (or embed it temporarily in your script):
restoredefaultpath
rehash toolboxcache

6 Kommentare

John Ondov
John Ondov am 31 Mär. 2016
Entering ver at the command line gives a list of tool boxes, in which the signal tool box is included. Running your lines however returns an error: "Warning: Duplicate directory name: /Applications/MATLAB_2016a.app/toolbox/stateflow/stateflow. But, now typing help findpeaks returns the help, but when i execute y=findpeaks(data), the return is "Undefined function "find peaks' for input arguments of the type double', again! Thank you for trying!
Star Strider
Star Strider am 31 Mär. 2016
You may have to uninstall and reinstall R2016a, and perhaps uninstall R2015b as well. It seems that you may have inadvertently written those files to your previous R2015b directory structure. It might be best for you to Contact Support to sort this.
John Ondov
John Ondov am 31 Mär. 2016
I suspect you are right! I'll take your advice. Thank you once again.
Star Strider
Star Strider am 31 Mär. 2016
My pleasure.
You quite definitely have my sympathies.
I always install to the directory structure MATLAB wants to create. I’ve never had any problems with it.
John Ondov
John Ondov am 24 Apr. 2016
I thought you might be interested in an update. it turned out to be a problem with the way R2016a deals with our University server array. At least, that's what our IT fellows told me after contacting MathSoft. As of April 20, 2016, it was not yet resolved. I'm back using R2015b until it is. That works just fine!
Star Strider
Star Strider am 24 Apr. 2016
When I looked through the Release Notes, findpeaks hasn’t changed in R2016a, so the worst of your situation is simply the inconvenience, if you also need some new functionality in R2016a.

Melden Sie sich an, um zu kommentieren.

Kategorien

Produkte

Gefragt:

am 30 Mär. 2016

Kommentiert:

am 24 Apr. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by