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개)

Sean de Wolski
Sean de Wolski 2014년 6월 25일

0 개 추천

One possibility would be to incorporate a
disp(T)
Inside of a script and then publish to PDF.

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

질문:

2014년 6월 25일

답변:

2014년 6월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by