It is not clear what version of MATLAB you are using and whether you are
working under GUIDE or not. In either case, you need to assign march.m to be
the <callback> field of the <DEMO> object. If you use GUIDE, you will need
to override the default callback function.
You need to assign some arbitrary callback to <PLAY> and then fetch the text
"Adam Smith" <firstname.lastname@example.org> wrote in message
> I am creating a GUI which needs to have a button called DEMO, once
> the button is pressed it calls up the function called march.m. Does
> anyone Know the callback code for the button?
> I also don't know how to pass a string from a textbox to a function
> by pressing a button PLAY. Its a list chords like A,B,C. And the
> function play.m can accept it. Again I dont know the callback code
> for the button.
> Thanks for your help.