Enabling multiple Edit Fields
显示 更早的评论
Hi,
I want that my programm enables different EditFields in App designer on the basis of a variable a. The names of the EditFields are stored in a cell array.
a=2;
EditFieldList={app.EditField1.Enable,app.EditField2.Enable,app.EditField3.Enable}
for z=1:1:a
EditFieldList{z}=1;
end
The code isn't working because i can't access the the variable names itself but only the output (in this case [off]).
Is there a way to be able to activate/deactivate the EditFields in a loop?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!