how to eliminate gui_mainfcn(gui_State, varargin{:}); error

11 次查看(过去 30 天)
code file is attached
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> test1 at 41 gui_mainfcn(gui_State, varargin{:});
  4 个评论
Walter Roberson
Walter Roberson 2018-3-3
The cause of this particular Question was that a .fig file had been used that did not match the .m code. The user had the .m code from a project but not the .fig file and was trying to create the matching .fig file.
If that is not your situation then you should create a new Question with the complete MATLAB error message. (This is not an Octave resource; octave-specific errors often do not get investigated here.)

请先登录,再进行评论。

回答(2 个)

Walter Roberson
Walter Roberson 2016-1-1
Insufficient information. We need the entire content of the error message.
Some people might suspect that this is the same question as http://uk.mathworks.com/matlabcentral/answers/262320-how-to-eliminate-the-uicontrol-callback-error, but of course you would not post the same question twice so we cannot use that question to guess about the missing information for this question.
  3 个评论
Walter Roberson
Walter Roberson 2016-1-1
How does this differ from http://uk.mathworks.com/matlabcentral/answers/262320-how-to-eliminate-the-uicontrol-callback-error ? I am not going to investigate the same problem twice, and if this is the same question as before then this present question will need to be deleted as a duplicate question in which case it would be inappropriate to respond here.
Adnan Saify
Adnan Saify 2016-1-1
ok i mam really sorry for this i am deleting this question asap you can comment on previous question

请先登录,再进行评论。


yousif Hamad
yousif Hamad 2018-1-13
its easy to solve this problem, just check what you add to the GUI AS MENU OR BUTTON and you delete the his code at the main file ,just delete it and create again

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by