how can I store the uieditfiled's value in a variable?

1 次查看(过去 30 天)
I built an array from code view of app designer ,like this:
g= app.GridLayout;
a=2;
% fill array
lbl1 = uilabel(g);
lbl1.Text = 'Array 1 ';
lbl1.FontSize = 16;
lbl1.Layout.Row = 2;
lbl1.Layout.Column = 1;
for i=1:a
ef = uieditfield(g,'numeric');
ef.Layout.Row = 2;
ef.Layout.Column = i+1;
ef.FontSize = 14;
end
The question I would like to ask is the following: how can I store the uieditfiled's value in a variable?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by