How to add rows of data to a GUI Table Column

3 views (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 20 Nov 2015
Data{l+1, 1} = char(eyeContactInstance.getTextContent);
  1 Comment
Eddy Nemer
Eddy Nemer on 20 Nov 2015
Edited: Eddy Nemer on 20 Nov 2015
Thank you so much ! I had tried Data{1 , l+1}
I still have the problem of the added values. I would appreciate it! Thank you!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!