how to program the uitable so that it can be string to the pushbutton?

1 view (last 30 days)
Hye guyz.. I'm quite new with matlab GUI.. Can anyone help me with these 2 questions??
1. Im trying to build a matrix form by creating a uitable in GUIDE. So I want the user to enter data into the table and I want to use the data at the pushbutton. But I dunno how to string the data from the table to the pushbutton. Is there any way to program the table? Im just take callback only. Do I have to take the create function, cellselectionfunc and etc in my m-editor?
2. Well i wan to make a 3 by 3 matrix, but i cannot edit the row at property inspection. When i delete the 4th row and i apply, its always be 4 row. I just want to make 3 by 3 matrix. Not 4 by 3.
Thx a lot =)

Answers (1)

Walter Roberson
Walter Roberson on 7 Feb 2011
I don't know what you are thinking of about "program the table".
When the pushbutton is pressed, to retrieve the values from the table,
get(handles.uitable1, 'Data')
where handles.uitable1 is the handle to the uitable.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!