필터 지우기
필터 지우기

How to publish full uitable to html/pdf

조회 수: 2 (최근 30일)
Bris
Bris 2015년 5월 4일
댓글: Bris 2015년 5월 11일
Hi,
I just recently started experimenting with uitables and publishing results.
The problem is that I have a large uitable (96 x 8) and want to publish it to either html or PDF (maybe both in the long run). But the table is so large that the figure containing the table cannot show the whole table unless you scroll around. So when publishing the result, it only includes a picture of the figure with the scroll bar locked, which means that only half the table is visible in the output. (It should be said that the figure positions are set equal to the extent of the table)
Any ways to show the whole table?
Thanks in advance!

답변 (1개)

Nalini Vishnoi
Nalini Vishnoi 2015년 5월 6일
편집: Nalini Vishnoi 2015년 5월 6일
Hi Bris,
The functionality of publishing/printing scrollable 'uitables' is currently not available in MATLAB.
As a workaround, pull the data from the table using 'get(h,'Data')'. Then save the data to a file using dlmwrite, xlswrite, or the lower level function fprintf. This file can then be opened in another program and printed.
For details on how to programmatically print a Microsoft Excel spreadsheet, see this web page.
-Nalini
  댓글 수: 1
Bris
Bris 2015년 5월 11일
Hi Nalini,
Thank you for your answer.
As for the workaround, I have written the table to Excel and then printed the table to a PDF file. Now I just don't know how to include that pdf in the publication. (I am not sure if PDF is the best choice of file format, but in this way I was sure to keep any color formating of cells that I decided to add now that I had to use Excel anyway.)
Hope you have time to answer this question as well.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by