save a plot

8 views (last 30 days)
azarm
azarm on 17 Aug 2011
Hi Hi,
i have a problem with saving a plot in a directory as a figure(.tif). I have a main function. Each time i run my code, the code reaches a directory, takes image sequence and make some outputs. What i need to do, is to save some output plots in a directory. I know how to save a figure, but it does not work for plots! (specially i have a figure with hold on and i make plot inside the figure and want to save it!)
Thanks,
Azi
  2 Comments
Oliver Woodford
Oliver Woodford on 17 Aug 2011
It isn't clear to me what you are asking. Can you include code for a very simple example?
azarm
azarm on 17 Aug 2011
i meant : print('-dtiff','plot.tif')

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 17 Aug 2011
Does this work for you?
plot(1:10)
print('-dtiff','plot.tif')
  7 Comments
azarm
azarm on 17 Aug 2011
you're right! It works.
Tnx for your help
pedro rivera
pedro rivera on 1 Apr 2013
your answer works, thanks

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing 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!