How to input data in listbox

조회 수: 3(최근 30일)
dmfwlansejr 2021년 7월 15일
답변: Chunru 2021년 7월 15일
In App Designer
How to input data in the listbox
Give me example mlapp file or code !


Chunru 2021년 7월 15일
Here is the example from documentation of uilistbox:
function selectlistbox
fig = uifigure('Position',[100 100 350 275]);
% Create text area
txt = uitextarea(fig,...
'Position',[125 90 100 22],...
% Create list box
lbox = uilistbox(fig,...
'Position',[125 120 100 78],...
'ValueChangedFcn', @updateEditField);
% ValueChangedFcn callback
function updateEditField(src,event)
txt.Value = src.Value;

Community Treasure Hunt

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

Start Hunting!

Translated by