Why am I getting error while running code of mathworks website?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Explorer
am 9 Feb. 2016
Beantwortet: John BG
am 10 Feb. 2016
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 Kommentare
Akzeptierte Antwort
John BG
am 10 Feb. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!