can anybody help me with the error?
Show older comments
Undefined function or variable 'TrainFeature'.
Error in main1>Recognizedaction_Callback (line 80)
X=TrainFeature;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in main1 (line 20)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)main1('Recognizedaction_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
Answers (3)
Walter Roberson
on 7 Jun 2018
1 vote
Your code assumes that there is a TrainFeature.mat in the current directory, and assumes that it contains a variable named TrainFeature . You could not have reached that point if TrainFeature.mat did not exist, but you would get that error if TrainFeature.mat does not contain a variable named TrainFeature
1 Comment
susanta reang
on 7 Jun 2018
Birdman
on 7 Jun 2018
0 votes
Make sure that TrainFeature (I assume it is a function) is located in your current working directory.
4 Comments
susanta reang
on 7 Jun 2018
susanta reang
on 7 Jun 2018
Birdman
on 7 Jun 2018
Can you also share your mat file as well, as attached?
Stephen23
on 7 Jun 2018
it is similar to those, as the real file exceed 5 mb so i cant attach it. if you send me your email id i can send the entire code.
thank you
this is the error i get while i run
susanta reang
on 7 Jun 2018
0 votes
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!