How can I save plot graph by command, not clicking save icon?

2 views (last 30 days)
Hello.
Recent days, I have saved all of the graphs generated by 'plot' command to the JPG file for easy future investigations.
In order to do that, I clicked save ion below meanu in the 'Figure' window.
But because there are so many datas to be plotted, I need to save the graphs shown in the figure window into JPG file by using command, not clicking icon.
Is there appropriate command matching for my purpose?
Please give me help.

Accepted Answer

Arnaud Miege
Arnaud Miege on 28 Apr 2011
Use print.
HTH,
Arnaud

More Answers (0)

Categories

Find more on Specifying Target for Graphics Output 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!