How can I add a table in GUI asking the user to input the number of rows.
1 view (last 30 days)
Show older comments
I am new to MATLAB. I am using GUIDE to create a GUI. I have an editable text box asking the user to input the number of rows. When the user types a number say 4, I would like a table to be created with 4 rows and two columns. Basically, I have the text box to input the degrees of freedom of a robot manipulator. And when the user inputs 4, I would like to ask what kind of a joint it is (Revolute or prismatic). So next time when the user inputs 5, I would like to define the type of each joint. So for some input n ( n can be anything from 1,2,3,...) I would like the user to define the type of each joint.
0 Comments
Accepted Answer
Walter Roberson
on 30 Nov 2015
n = input('How many rows?');
newdata = cell(n,2);
set(handles.YourUitable, 'data', newdata);
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps 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!