GUI, Listbox

조회 수: 6 (최근 30일)
Craig
Craig 2011년 1월 27일
Hello,
I am working with a GUI, and would like to set up a listbox that contains a counter (starting from 0 and counts up until the user is finished). I have already written the code for the counter, and am wondering how I integrate the counter within the box?
Thanks.
  댓글 수: 1
Zain Mecklai
Zain Mecklai 2011년 1월 27일
I'm not sure what you mean exactly. It seems like all you want to do is set the Listbox String and Value.
http://www.mathworks.com/help/techdoc/creating_guis/f6-7446.html

댓글을 달려면 로그인하십시오.

답변 (1개)

Zain Mecklai
Zain Mecklai 2011년 1월 27일
So assuming I understand what you mean you can do:
set(listbox_handle, 'string',count)
However, if you want to just display a single number, you can also use other UI elements as described in this example.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by