Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: GUIDE listbox
Replies: 1   Last Post: Dec 30, 2012 11:59 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 12,974
Registered: 12/26/06
Re: GUIDE listbox
Posted: Dec 30, 2012 11:59 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Ormo " <ironhoofox@yahoo.gr> wrote in message <kbq3gk$due$1@newscl01ah.mathworks.com>...
> How can i make a listbox in GUIDE collect and list the first line of each column of a matrix while each column's first line is a string,name etc and when i select an object from the list, display the corresponding column's data in my plot box?
Get the text or numbers into a string. I'm not really clear what you're talking about but you can use sprintf() to convert multiple strings and numbers into a single string. Then send that to the listbox which you've placed on your figure in GUIDE, with the set() command

yourString = sprintf('%s %s %d %.2f', whatever...........
set(handles.listbox, 'String', yourString);

Date Subject Author
Read GUIDE listbox
Read Re: GUIDE listbox

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.