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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

re: GUI's in MatLAB using GUIDE

  • 05-03-2003 11:10am
    #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, Registered Users 2 Posts: 932 ✭✭✭yossarin


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


Advertisement