Printing a table to a postscript file.

Hello,
I would like to print a formatted table such as one created using the table function, to a postscript file. The reason for the .ps file is that it will be used to generate a PDF report. Here's an example of a simple table that I've created:
rows = {'rowA'; 'rowB'; 'rowC'; 'rowD'};
col1 = {'a1'; 'b1'; 'c1'; 'd1'};
col2 = {'a2'; 'b2'; 'c2'; 'd2'};
col3 = {'a3'; 'b3'; 'c3'; 'd3'};
col4 = {'a4'; 'b4'; 'c4'; 'd4'};
tab = table(col1, col2, col3, col4, 'RowNames', rows);
The table is displayed in the command window in a nicely formatted manner which I would like to preserve. See it below:
Is there any way to create a figure from this table so that I may print it to a .ps file? I am using ps2pdf in order to generate the PDF. It works perfectly for printing figures.
Thanks!!
Mike

类别

帮助中心File Exchange 中查找有关 Tables 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by