Thread Subject: Callback function and GUI in the same .m files

Subject: Callback function and GUI in the same .m files

From: Madhu Shurpali

Date: 26 Jul, 2007 01:36:51

Message: 1 of 3

Hello Everybody,

  I have defined a set of Radio Buttons and they call the same
callback function with diff input argument.

In a diff .m file I have defined the Callback function. Is tehre a
way I can define the GUI and the Callback function, in the same .m
file.

Thanks and Regards
Madhu

Subject: Callback function and GUI in the same .m files

From: antique

Date: 26 Jul, 2007 14:21:36

Message: 2 of 3

Madhu:
        yes.
however, I think you'd better to write the GUI function firstly, then the
callback function.
"Madhu Shurpali" <shurpalimv@yahoo.com>
??????:ef5ecc0.-1@webcrossing.raydaftYaTP...
> Hello Everybody,
>
> I have defined a set of Radio Buttons and they call the same
> callback function with diff input argument.
>
> In a diff .m file I have defined the Callback function. Is tehre a
> way I can define the GUI and the Callback function, in the same .m
> file.
>
> Thanks and Regards
> Madhu

Subject: Callback function and GUI in the same .m files

From: Gautam Vallabha

Date: 26 Jul, 2007 08:55:13

Message: 3 of 3

"Madhu Shurpali" <shurpalimv@yahoo.com> wrote in message
news:ef5ecc0.-1@webcrossing.raydaftYaTP...
> I have defined a set of Radio Buttons and they call the same
> callback function with diff input argument.
> In a diff .m file I have defined the Callback function. Is tehre a
> way I can define the GUI and the Callback function, in the same .m
> file.

Make the callback be a subfunction or a nested function. This page describes
the different kinds of functions:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f4-62416.html

Gautam

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com