How can I make my exported figure appear exactly the same way as it does in MATLAB 7.14 (R2012a)?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 1 Aug. 2013
Bearbeitet: MathWorks Support Team
am 19 Apr. 2023
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.
Akzeptierte Antwort
MathWorks Support Team
am 18 Apr. 2023
Bearbeitet: MathWorks Support Team
am 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Printing and Saving finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!