MATLAB: Insert table into figure

figuretable

Hi All, I want to insert table and a plot to the same figure. The table is 2X3 (the first row is header – strings, and the second row is numbers). I can read the table from excel file or from 2 variables (header & values).
How can I do this?
Thanks 🙂 Noga

Best Answer

You'll want to use uitable. Here's a very simple example:
subplot(2,1,1);
plot(1:10);
uitable('Data', [1 2 3], 'ColumnName', {'A', 'B', 'C'}, 'Position', [20 20 500 150]);