I am making an app on app designer, I want the user to enter data in tabular form, where the no. of rows can be input by user and then he enters data in 2 columns
1 次查看(过去 30 天)
显示 更早的评论
Here, the number of layers are to entered by the user, then the table shoud create that many rows. The user can enter the data in that table.
0 个评论
回答(1 个)
Urmila Rajpurohith
2020-8-26
You can use the below call back for "Edit field" to get the number of rows based on user input
function EditFieldValueChanged(app, event)
n = app.EditField.Value;
n =str2double(n);
dt = zeros(n,'double');
app.UITable.Data= dt;
end
Hope this helps!
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!