필터 지우기
필터 지우기

Set the Choice List automatically in a GUIDE table

조회 수: 3 (최근 30일)
Alizee
Alizee 2013년 4월 3일
In GUIDE, the table property editor allows to set a column format as 'choice list' effectively creating a drop down menu for each cell of his column. The various options that will appear in the choice list can be entered manually using the Choice List editor.
How can I program the Choice List so that the options are entered automatically instead of manually?
I also would like each cell of the column to be set with a different choice list if possible.
Thanks a lot

답변 (1개)

Walter Roberson
Walter Roberson 2013년 4월 3일
See the documentation on uitable properties.
  댓글 수: 2
Sean de Wolski
Sean de Wolski 2013년 4월 3일
The uitable doc has a good example with 'fixed/adj'. Look, for this example.
Alizee
Alizee 2013년 4월 4일
Thanks Walter and Sean, that now allows me to code a pop-up menu in the table rather than using the Choice List editor.
The only issue is that the drop down list is the same for each row of the colunm and I would like each row to have its deticated drop down list. Is that possible?
Thank you
Ps: I tried writing the columnformat vector as an array rather than rows so that Row1 has a drop down menu with {'Option1' 'Option2'}, Row2 has a drop down menu with {'Option3' 'Option4'}, etc. but it din't work. Any ideas?
columnformat = {{'Option1' 'Option2' ; 'Option3' 'Option4' ; 'Option5' 'Option6' ; 'Option7' 'Option8'}};

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by