MATLAB Answers


can anybody help me with the error?

Asked by susanta reang on 7 Jun 2018
Latest activity Answered by susanta reang on 7 Jun 2018
Undefined function or variable 'TrainFeature'.
Error in main1>Recognizedaction_Callback (line 80)
Error in gui_mainfcn (line 95)
Error in main1 (line 20)
gui_mainfcn(gui_State, varargin{:});
Error in
Error while evaluating uicontrol Callback


Sign in to comment.


3 Answers

Answer by Walter Roberson
on 7 Jun 2018

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

how do i resolve it? i will attach the error which i am getting

Sign in to comment.

Answer by Birdman
on 7 Jun 2018

Make sure that TrainFeature (I assume it is a function) is located in your current working directory.


Show 1 older comment
Can you also share your mat file as well, as attached?
susanta reang's "Answer" moved here:
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

Sign in to comment.

Answer by susanta reang on 7 Jun 2018


Sign in to comment.