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!