I am trying to insert an 8×8 table next to an existing plot. Although both of them appear in the same figure(4), the table cannot be moved or edited, therefore I cannot illustrate the results as I want to.
The code I use is provided below:
f=figure(4)% create the data
d = od_table;% Create the column and row names in cell arrays
cnames = {'1','2','3','4','5','6','7','8'};rnames = {'1','2','3','4','5','6','7','8'};% Create the uitable
t = uitable(f,'Data',d,... 'ColumnName',cnames,... 'RowName',rnames,... 'ColumnWidth',{30})
The ideal solution for me would the table to be able to be moved around the figure with fixed size, titles etc. As a 'movable legend'.
Best Answer