I'm using the PrintTable method of the matlabtools. In the documentation the following example is given:
t = PrintTable('LaTeX/PDF export demo, %s',datestr(now));
t.HasRowHeader = true;
t.HasHeader = true;
t.addRow('A','B','C');
Let's say I have the header names in a cell array header = {'A','B','C'}
. Unfortunately a cell array cannot be passed to addRow
, i.e. t.addRow(header);
does not work. Unfortunately the size of the header varies in my case, that's why I'm storing it in a cell array.
How can I call the addRow
method with a variable sized cell array?