How to save graph in each iteration

I have a loop in my code that in each iteration is produced a graph. I want to save all of graphs in each iteration. If I use the following code, it will just overwriting.
print('figA','-djpeg')

Categories

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

Asked:

Moe
on 4 Jul 2015

Answered:

on 4 Jul 2015

Community Treasure Hunt

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

Start Hunting!