Why am I getting error while running code of mathworks website?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
load sunspot.dat
year=sunspot(:,1);
relNums=sunspot(:,2);
findpeaks(relNums,year);
xlabel('Year');
ylabel('Sunspot Number')
title('Find All Peaks');
I am getting below mentioned error. Why is it so?
Error using uddpvparse (line 122)
Invalid Parameter/Value pairs.
Error in findpeaks>parse_inputs (line 84)
hopts = uddpvparse('dspopts.findpeaks',varargin{:});
Error in findpeaks (line 59)
[X,Ph,Pd,Th,Np,Str,infIdx] = parse_inputs(X,varargin{:});
3 commentaires
Réponse acceptée
John BG
le 10 Fév 2016
there is a uppvparse related compiler bug fix report 452577 (release 2008b) in
I tried the sunspot.dat initial lines and work fine in R2015.
There are 4 findpeaks related bugs 650368(2010b), 582260(2010a), 452577(2008b) same as above, and 489930(2009a).
I have also tried the code you added later on and no problem in 2015.
If I were you, if not out of experience, just for the cost of a student licence, it really pays off to save a few pizzas and beer, and get MATLAB updated, really.
is this answer helping you in any way to solve your question and take the right direction, please give me a thumbs-up vote by clicking above, next to your question, thanks in advance.
John
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Measurements and Feature Extraction dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!