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
回答 (2 件)
Jan
2014 年 6 月 25 日
0 投票
There are many submissions in the FEX concering LaTeX tables:
E.g. this might be useful: http://www.mathworks.com/matlabcentral/fileexchange/33815-printing-a-formatted-table
Sean de Wolski
2014 年 6 月 25 日
カテゴリ
ヘルプ センター および File Exchange で Tables についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!