which command should be used in Matlab to save a figure?

1 view (last 30 days)
Hello all
I want to save the obtained figure as a file automatically. I don't have much idea how i can do it in Matlab. Please Help!!
Thanking you in anticipation.

Accepted Answer

Image Analyst
Image Analyst on 27 May 2014

More Answers (1)

Ioannis on 27 May 2014
Edited: Ioannis on 27 May 2014
You can use print and save it in pdf format. e.g. you just created a graph, then type print -dpdf nameofyourgraph and it will save it in your default matlab path

Community Treasure Hunt

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

Start Hunting!