How do I add and remove elements from a listbox that I have created using GUIDE within MATLAB 6.5.1 (R13SP1)?

2 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
Elements are added to and removed from a listbox by using the SET and GET functions on the "String" property of the listbox. Download the attached files for an example on how to add and remove elements from a listbox:
In this GUI, an initial list box is created with the elements "one", "two" and "three". You can then add an element to the end of the list through an edit box. You can also specify by index number which element you would like to remove from the list.
If there are any functions within the code that you are unfamiliar with, please consult the documentation. For example, for more information on the CELLSTR function, type the following at the MATLAB prompt:
help cellstr

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

产品


版本

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by