Doug's MATLAB Video Tutorials

May 13th, 2008

Accessing data from one widget to another in GUIDE

Last time, I showed how to add the newly documented UITABLE to a GUI. [click here] There were a few questions [click here] about how to access the data in the UITABLE from the callback of another widget. The answer to this question is applicable to all widgets, not just UITABLES. Basically, you are using the handles structure to access the handle of another control, then using the GET command to query it for its data.
iconFiles.jpgiconPod.jpg

3 Responses to “Accessing data from one widget to another in GUIDE”

  1. Eugene Sheynin replied on :

    Dear Doug Hull

    I was very impressed by your matlab videos.
    You are doing an excellent job!

    Cheers,
    Eugene Sheynin

  2. Charles Dumont replied on :

    Doug,

    How would you cause a button click in a GUI to change the text of an edit field in a second GUI (which is opened from a menu on the first one)?

  3. dhull replied on :

    @charles

    http://blogs.mathworks.com/videos/2005/10/03/guide-video-part-two/

    This should get you pretty close to that goal.

    Doug

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of The MathWorks.