How to add rows of data to a GUI Table Column
3 views (last 30 days)
Show older comments
I have an empty GUI table with two columns and 4 rows. I am filling the table with data which I am getting from XML Nodes. Here is the sample code.
Data = cell(1,eyeContactInstances.getLength);
for l = 0:eyeContactInstances.getLength-1
eyeContactInstance = eyeContactInstances.item(l);
eyeContactInstance.getTextContent;
Data{l+1} = char(eyeContactInstance.getTextContent);
end
set(handles.uitable1,'Data',Data);
My problem is that the Data is being added to the table as new columns on the first row. I need the opposite, I need to add the Data as new rows under the First Column.
And it seems that the Data Array is having the values and adding additional "..." between each value!
I can't seem to know why.
I have attached the image of the table and the Result.
Thank you for any assistance.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on String Parsing 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!