From: amandeep on
i want to exceute user defined function in 'demo.m' by clicking a button in gui(building with the help of guide)
plz help me
From: nanren888 on
"amandeep " <verma.aman81(a)gmail.com> wrote in message <hltmh2$9v0$1(a)fred.mathworks.com>...
> i want to exceute user defined function in 'demo.m' by clicking a button in gui(building with the help of guide)
> plz help me

The GUIDE doc is ok to learn from.
Take a look at Creating GUIs with GUIDE, Programming a GUIDE GUI, Examples: Programming GUIDE GUI Components
The first example is for a push button callback function.
Help prior to that will help with creating the button, if that gives you issues.
But, basically, you start guide & drag a pusbutton from the left there.
Any help?
From: Mark Hayworth on
amandeep
Try a GUI/GUIDE template or tutorial, such as this one:
http://www.mathworks.com/matlabcentral/fileexchange/24224