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

1 次查看(过去 30 天)
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 =)

回答(1 个)

Walter Roberson
Walter Roberson 2011-2-7
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by