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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 18 Apr 2023
Modificato: MathWorks Support Team il 19 Apr 2023
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.

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by