The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 13,022
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 " <> wrote in message <kbq3gk$due$>...
> 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.