why does appdesigner listbox display so slow?

조회 수: 3 (최근 30일)
belen celik
belen celik 2020년 6월 8일
Hello,
i am working on appdesigner and editing my listbox items inside of a "edit field" call back. If i have a '.' in the string, i delete before the dot and assign it to the listbox item. Listbox items are displayed 20 to 50 seconds later. Is it normal to take that long? How can i make it faster? How can i display the executing time of this callback?
Thank you.
function FilePathEditFieldValueChanged(app, event)
a={ 'string','string2','string3','string4'}; %there are 233 elements in this cell array not 4
for k=1:length(a)
if contains(a{1,k},'.')
n = split(a{1,k},".");
app.Signals1ListBox.Items{end+1} =n{end,1} ;
app.Signals2ListBox.Items{end+1} =n{end,1} ;
else
app.Signals1ListBox.Items{end+1} =a{1,k} ;
app.Signals2ListBox.Items{end+1} =a{1,k} ;
end
end
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by