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
2 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323179/image.png)
0 Comments
Answers (1)
Urmila Rajpurohith
on 26 Aug 2020
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 Comments
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!