[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: GUI callback

Adam,

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
using e.g.

<my_value>=get(handles.<textbox>,'String'>



HTH

Roy

"Adam Smith" <ada@vodafone.ie> wrote in message
news:eed476a.-1@webx.raydaftYaTP...
> 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.


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index