MATLAB: GUI Push button Help !

guigui tablematlab guipush button

Hi ,
I am working on a project where i need to use push buttons. On pressing a button , I want to execute a m file already written and change the values of a particular row in the GUI table.
I am a beginner and need some help. Please help me on how to edit the call back function and change the data in the table.
Thanks in advance.
Regards.
Jayadeep Kodali

Best Answer

Open your GUI figure file by right clicking on its name in the MATLAB current folder window and choosing GUIDE.
Find the push button in the GUIDE opened design window.
Right click on the push button and find it's callback function.
An editor will open up and shows the callback function of the pushbutton.
Put the name of the script m-file or the function you have previously written in the callback function.
You are done. Test the GUI.