How can I make my exported figure appear exactly the same way as it does in MATLAB 7.14 (R2012a)?

2 ビュー (過去 30 日間)
I have a figure window in MATLAB containing a plot or other graphics. When I use the PRINT or SAVEAS commands, some aspects of the figure change when exported, such as the labels, font size, or other features. I would like to ensure that the figure elements remain the same as they appear in MATLAB when I export the figure from MATLAB.

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 4 月 18 日
編集済み: MathWorks Support Team 2023 年 4 月 19 日
One method is to use the MATLAB Central File Exchange submission EXPORT_FIG:
To use EXPORT_FIG:
1. Download the files from the above link.
2. Extract the files to a new directory.
3. Add the directory to the MATLAB path with the following command, as an example:
addpath(genpath('export_fig'));
4. Export the figure with the following syntax (for example):
export_fig(gcf,'image.png');
Note that EXPORT_FIG is a MATLAB Central File Exchange submission, and MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by