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

조회 수: 3 (최근 30일)

채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 1월 21일
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