How to save a matlab table?

74 ビュー (過去 30 日間)
andrea
andrea 2020 年 7 月 18 日
コメント済み: Cris LaPierre 2020 年 7 月 23 日
I would like to save this matlab image representing a table of data as a .png or .pdf centered and without white boreder, do you have some suggestions ?
I attached the .fig to which I'm referring to.

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 7 月 18 日
If you want to do this programmatically, use the saveas or print function.
You can also do this interactively through the file menu in the figure window. Choose Save As and select the desired format in the drop down menu.
You can also see this post.
  2 件のコメント
andrea
andrea 2020 年 7 月 23 日

Yes thank you, i would like to do it programmatically but the figure it's cut when I save it as pdf

Cris LaPierre
Cris LaPierre 2020 年 7 月 23 日
You have to explore the options. When I use print, I get the following message:
>> open untitled.fig
>> print('untitled','-dpdf')
Warning: The figure is too large for the page and will be cut off. Resize the figure, adjust the
output size by setting the figure's PaperPosition property, use the 'print' command with either
the '-bestfit' or '-fillpage' options, or use the 'Best fit' or 'Fill page' options on the 'Print
Preview' window.
> In validate (line 146)
In print (line 67)
After exploring some of the properties, this appears to give a decent solution.
open untitled.fig
set(gcf,'PaperOrientation','landscape')
print('untitled','-dpdf')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by