How to add a table on a figure ?

Hello,
I've a table saved like this:
u = uitable(g,'Data',dgain,'RowName',rn,'Position',[60,343,300,90],...
'ColumnName',cn,'ColumnFormat',{'bank','bank'});
How can i plot the table (graphically, not the values into a curve) into a figure ? The table format is really easy to read and is a good recap.
Best regards,
Baptiste

Answers (1)

What is the class of dgain? If it is MATLAB table then try this
g = gcf;
u = uitable(g,'Data',table2cell(dgain),'RowName',rn,'Position',[60,343,300,90],...
'ColumnName',cn,'ColumnFormat',{'bank','bank'});

Asked:

on 25 May 2018

Answered:

on 25 May 2018

Community Treasure Hunt

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

Start Hunting!