How to view saved matlab .fig file?

조회 수: 19 (최근 30일)
Nicholas Kavouris
Nicholas Kavouris 2022년 8월 31일
댓글: Nicholas Kavouris 2022년 8월 31일
I have a program using the following code which procedurally saves .fig files to folders on my network drive?
figs_created = setdiff(figs_after, figs_before);
for j = 1 : length(figs_created)
savefile = fullfile(completed_filepath, baseFileName + " " + "Figure " + j + ".pdf");
saveas(figs_created(j), savefile);
matfile = fullfile(completed_filepath, baseFileName + " " + "Figure " + j + ".fig");
saveas(figs_created(j), matfile);
end
close(figs_created)
How to i open these figures once the program is completed?
I can see the figures saved in file explorer, but after double clicking or pressing 'open' nothing happens, how can i view these figures?

답변 (1개)

Abderrahim. B
Abderrahim. B 2022년 8월 31일
Use openfig
  댓글 수: 1
Nicholas Kavouris
Nicholas Kavouris 2022년 8월 31일
openfig("R:\MATLAB analysis\2. Completed\31-Aug-2022\24Aug2022-JX6-Emu-J1003-400\24Aug2022-JX6-Emu-J1003-400 Figure 1.fig")
ans =
Figure (17: Grill Status) with properties:
Number: 17
Name: 'Grill Status'
Color: [0.9400 0.9400 0.9400]
Position: [488 342 560 420]
Units: 'pixels'
no shown fig only properties

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

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by