MATLAB: Connecting Gui to another m.file

guimfile

i want to create a push button that will automatically link to another m file and run the m.file how do i create that?
thanks

Best Answer

You would put a call to the file in the callback of the push button.
If the other file is a script, use the "run" command.
If the other file is a function, just code a call to the function.
Related Question