Exporting figures from Live Script

13 views (last 30 days)
FTil
FTil on 1 Sep 2018
Edited: ahmed nebli on 1 Sep 2018
I would like to export all the figures contained within a Live Script at once for use in a talk or paper, ideally programmatically (e.g. a command in the last line of the Live Script), and ideally to pdf with one figure per file. I have tried Save->Export to latex from the Live Editor but the saved eps files are actually bitmaps and the resolution is way to low for use even in a talk.
If this is not possible, if there was a way to print programmatically specific figures (or the last generated) in a Live Script, I could just add the respective line after each figure and export as a I am generating them.

Answers (1)

ahmed nebli
ahmed nebli on 1 Sep 2018
Edited: ahmed nebli on 1 Sep 2018
i haven't tried it before but you may take a look on these links it may help:
https://www.mathworks.com/help/matlab/matlab_prog/modify-output-figures.html
https://www.mathworks.com/matlabcentral/answers/307121-how-to-force-an-external-figure-in-live-scripts

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!