how to save figure with command

2 views (last 30 days)
vivek lal
vivek lal on 30 Oct 2018
Commented: madhan ravi on 30 Oct 2018
There is a save icon. So that I can save the prompted figure. But I want to know the command to save the figure to avoid clicking the save icon.

Accepted Answer

madhan ravi
madhan ravi on 30 Oct 2018
Edited: madhan ravi on 30 Oct 2018
  4 Comments
madhan ravi
madhan ravi on 30 Oct 2018
I can't see any attached picture

Sign in to comment.

More Answers (2)

Stephen23
Stephen23 on 30 Oct 2018
Edited: Stephen23 on 30 Oct 2018
You do not say anything about the file format that you want to use, however these will likely cover you needs:
doc print
doc saveas
doc savefig

vivek lal
vivek lal on 30 Oct 2018
Madhan how can I accept the answer when still it shows error.
Actually I want to save the prompted figure 2. Let it be jpeg format.
There is save icon available onow the toolbar. But please provide me command

Categories

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

Tags

Community Treasure Hunt

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

Start Hunting!