I am new on matlab and installed R2017B and preparing a project emotion based music player
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Error in classreg.learning.paramoptim.parseOptimizationArgs (line 5) [OptimizeHyperparameters,~,~,RemainingArgs] = internal.stats.parseArgs(...
Error in fitcknn (line 247) [IsOptimizing, RemainingArgs] = classreg.learning.paramoptim.parseOptimizationArgs(varargin);
Error in main_GUI>Recognition_Callback (line 236) c=fitcknn(test_feature,fea,group);
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in main_GUI (line 43) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)main_GUI('Recognition_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.
4 Kommentare
Jan
am 23 Feb. 2018
Bearbeitet: Jan
am 23 Feb. 2018
Currently your code is not readable. Mark it and press the "{} Code" button to format it.
It would be kind, if you post the relevant part of the code only. Otherwise all readers have to dig in the code at first to find out, where you need what. We cannot run your code, because the FIG file is not provided. And you have posted only the part of the error message, which explains where the problem occurs, but not the line about what the problem is.
Antworten (1)
Don Mathis
am 23 Feb. 2018
In your posted code, I see a single call to 'fitcknn' and it is passed 3 arguments:
c=fitcknn(test_feature,fea,group);
fitcknn does not take 3 arguments. It takes two, plus optional name-value pair arguments that appear in pairs. So I suspect that the 'group' argument is misplaced.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Graphics Object Properties 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!