MATLAB Answers

can anybody help me with the error?

2 ビュー (過去 30 日間)
susanta reang
susanta reang 2018 年 6 月 7 日
回答済み: susanta reang 2018 年 6 月 7 日
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

  0 件のコメント

サインイン to comment.

回答 (3 件)

Walter Roberson
Walter Roberson 2018 年 6 月 7 日
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 件のコメント

susanta reang
susanta reang 2018 年 6 月 7 日
how do i resolve it? i will attach the error which i am getting

サインイン to comment.


Birdman
Birdman 2018 年 6 月 7 日
Make sure that TrainFeature (I assume it is a function) is located in your current working directory.

  4 件のコメント

表示 1 件の古いコメント
susanta reang
susanta reang 2018 年 6 月 7 日
i am attaching the code
Birdman
Birdman 2018 年 6 月 7 日
Can you also share your mat file as well, as attached?
Stephen Cobeldick
Stephen Cobeldick 2018 年 6 月 7 日
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

サインイン to comment.


susanta reang
susanta reang 2018 年 6 月 7 日

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by