Why am I getting error while running code of mathworks website?
Ältere Kommentare anzeigen
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
Walter Roberson
am 9 Feb. 2016
What is class(relNums) and class(year) ?
Explorer
am 9 Feb. 2016
Explorer
am 9 Feb. 2016
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Measurements and Feature Extraction finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
