ur video on adding a table to GUI and using the data

i wish to use the data which is being displayed as the output. i can only see the data changing on screen, but if i want access of that data, can u tell me in which variable is it stored or how do i assign the data values to a variable which can be used in the workspace

댓글 수: 1

Is this question addressed to a particular person?
If you are referring to a Mathworks tutorial video, it might help to provide the link to the specific one you are interested in.

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2011년 4월 29일

0 개 추천

If you have a uitable() with handle H, then to get the data from the table, you would use
TheData = get(H,'Data');
The output of this, TheData, would be a cell array containing the individual entries for the array. For example, TheData{3,5} would be the entry for the third row, fifth column.

댓글 수: 2

sumeet
sumeet 2011년 4월 29일
http://blogs.mathworks.com/videos/
i guess u have gt the video correct
my handle is hObject...i tried ur command using my handle instead of 'H' bt it returns Undefined variable "TheData" or class "TheData".
pls guide
get(hObject, 'Data') and assign the result to whatever variable you want. Then that variable will be a cell array containing the table.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by