Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

re: GUI's in MatLAB using GUIDE

Options
  • 05-03-2003 12:10pm
    #1
    Closed Accounts Posts: 7


    hey,
    I'm trying to use the modal question dialog demo and having some problems when I try to call it from another GUI.
    I keep getting an error that tells me gui_mainfcn is not
    defined. I have looked at the sample code and can see where the error is occurring,
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
    gui_Singleton = 1;
    gui_State = struct('gui_Name', mfilename, ...
    'gui_Singleton', gui_Singleton, ...
    'gui_OpeningFcn',
    @modalGUIQuestionDialog_OpeningFcn, ...
    'gui_OutputFcn',
    @modalGUIQuestionDialog_OutputFcn, ...
    'gui_LayoutFcn', [] , ...
    'gui_Callback', []);

    if nargin & isstr(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
    end


    if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
    else
    gui_mainfcn(gui_State, varargin{:});
    end
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    Does anyone know a way around this ?
    Thanks
    joe.


Comments

  • Registered Users Posts: 932 ✭✭✭yossarin


    ok a stupid question:
    have you added the file/function gui_mainfcn() to your import list ?
    ....god i hate matlab.


Advertisement