Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Listbox, Add and Remove Item from the listbox...

7 views
Skip to first unread message

Husain

unread,
Dec 11, 2001, 1:15:00 AM12/11/01
to
Hi,
Anyone who knows how add and remove item from a list box. have a code
for an editable listbox in matlab....I need GUI that has a listbos
and two button one to add it to the list box and the other Remove a
selected item from the Listbox. thanks

Charles R. Denham

unread,
Dec 11, 2001, 9:21:17 AM12/11/01
to
Hi --
"Get" the "String" property of the "listbox"; add or delete something
to/from the cell-array of strings; sort if you like; then restore via
"set". An example is our "listpick" package in the Matlab Snackbar --
link from my homepage.
-- Chuck <http://crusty.er.usgs.gov/~cdenham/>
0 new messages