How can I assign vector values to a specific column in uitable GUI matlab?

Hi,
I am trying to show my results in uitable. I have an table with 8 column with column names. how is it possible to show results in 4th column only given first 3 have values.
I appreciate your help in advance.
Regards,

 Accepted Answer

d = get(handles.Table1, 'data');
d(4,:) = num2cell([3; 17; 8; -5; pi]); %assign a cell array
set(handles.Table1, 'data', d);

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!