can not open fig files saved by "saveas" after live script ran
Show older comments
Hi, everyone. I encountered a problem in Matlab2019b these days.
I want to save the .fig files and .eps files after the live script done with
saveas(gcf,'path/fig_name','fig')
print(gcf,'path/fig_name','-r300','-depsc')
Everyting is fine with those .eps files. However, those fig files were also saved but I just can't open them.
If I select the plotting commands, press F9 run them again, replot the figures in private windows as .m script do, then those saved fig files can be opened with matlab.
Any advice will be appreciated.
Thx!
4 Comments
Walter Roberson
on 27 Jul 2020
What happens when you try to open them?
What happens if you specifically call openfig() passing in the file name?
Adam Danz
on 22 Apr 2021
Sounds like this figure was generated in LiveEditor based on 'LiveEditorRunTimeFigure' which is why it was not visible.
Accepted Answer
More Answers (0)
Categories
Find more on Update figure-Based Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!