MATLAB: In GUI when press button will run a program

executegui

please in GUI i want to execute a program p.m when press push button

Best Answer

You would have a Callback property configured for the pushbutton. Code that callback to consist of the header and then the line
p;
This will cause p to be run when the button is pressed.
For example,
function pushbutton1_callback(hObject, event, handles)
p;