Reading Loop-Generated Editfields (Without using AppDesigner)
1 次查看(过去 30 天)
显示 更早的评论
I recently learned about the uifigure-based way of coding a GUI programmatically.
I cannot use AppDesigner for this specific project.
In order to keep my code consice I have created a loop to create my 5 editfields
for K = 1:5
txtp1(K) = uieditfield(f, 'Position', [(90+((K-1)*30)) 330 30 30], 'ValueChangedFcn', _________);
end
Where I put the underscores is where I'm having trouble, as while I can make a function for a single text field, I'm getting errors left and right trying to create said function. The function is supposed to read what's in the editfields and output it to an array None of the documentation that i've read on the uieditfield shows how to create this function when the editfield is generated by a loop.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 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!