File Exchange Pick of the Week

April 8th, 2008

Widgetpalooza: 12 widgets coded up in a GUI

This short video starts with two minutes of trying every widget on the example GUI. Then there is five and a half minutes of showing the callbacks on the widgets.

  • Push button
  • Push button with a picture
  • Radio button
  • Edit box
  • Multi-line edit box
  • Toggle button
  • List box
  • Popup menu
  • Table
  • Axes


Video Content

iconFiles.jpgiconPod.jpg

8 Responses to “Widgetpalooza: 12 widgets coded up in a GUI”

  1. Daniel Sutoyo replied on :

    very comprehensive I like it. This should benefit a lot of new users in MATLAB gui!

  2. Quan Quach replied on :

    Very nice Doug. Lots of people will benefit from this!

  3. Muzaffar replied on :

    Hi, i want to know how can i program uitable to be displayed in a separate window after pressing a pushbotton for example?
    If i press pushbutton again the context of the table may change also.
    kind regards.

  4. Something replied on :

    I think lacked explain Edit box’s Callback. Or not?

  5. Doug replied on :

    Something!

    Oops. Looks like it got lost in editing. Just modify the

    function edit1_Callback(hObject, eventdata, handles)

    Doug

  6. Doug replied on :

    Muzaffar,

    For two window GUIs, you will want to watch this video.

    http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8616&objectType=FILE

    Doug

  7. Fikri replied on :

    I’m building a GUI, so far so good until I tried to make it object oriented. Say that my GUI is in a function called gui.m, and the essential function that is going to be used by gui.m are both dct.m and tmt.m, here lies the problem, both dct.m and tmt.m produces histograms, which uses panels inside gui.m for generating the histograms. How do I deal with the coding, since it will use a handle for the panel inside the gui.m (I don’t use axes for those histograms).

    What would you suggest me in this situation.

    Regards,

    Fikri

  8. Doug replied on :

    Fikri,

    I am not sure I understand your question. I think you might be better sending the simplified code and the question to support@mathworks.com

    Thanks,
    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).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • oleg: The author has implemented skewness, kurtosis and checks answering appropriately to the critic.
  • Ashok: how to store 10 or more random number in a loop a loop for i = 1:n mean(i) = input(’enter the mean value...
  • Ben: Doug, Thanks for the very helpful videos! Uitables seem like a convenient way to make a customized property...
  • oleg: Allstats has no checks, no comments and could also be improved (talking about prctile implementatio). Not to...
  • Todd: Additional information and a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code can be found at...
  • Doug: @Leo, Here is the “English version” of that code. “vec = []” makes an empty variable...
  • leo: Dear Doug I have a question in your code ‘October 9th, 2009 at 13:53′ vec = []; vec = [vec val]; I...
  • Shanker Keshavdas: You sir, are a gentleman and a scholar… No really, helped me out a lot. As to what is...
  • Quan Zheng: how can I get a copy of stepspecs.m?
  • Doug: @Lucy I think this is what you seek to move a line with the mouse in MATLAB. http://blogs.math...

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