Update GUI uitable "Choice List"

5 ビュー (過去 30 日間)
Tom Irvine
Tom Irvine 2019 年 5 月 9 日
Assume
  1. A GUI with a listbox and a uitable
  2. The uitable has an embedded Choice List in its first column.
  3. The separate listbox has two choices: fruit and vegetable.
If the user selects fruit, then the uitable Choice List should have options in respective rows: apple & banana
If the user selects vegetable, then the uitable Choice List should have options in respective rows: carrot & corn
I understand the callback procedure when the listbox is changed.
But how do I update the uitable Choice List based on whether the users chooses fruit or vegetable?
Something like:
if fruit
set(handles.uitable....
else
set(handles.uitable....
end
Thank you,
Tom Irvine

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by