So I am running a loop with various names and I am plotting a figure for each. I have the code
saveas(gcf,[names(ii,:) '.eps'], 'epsc')
How do I label each figure so they save differently within each name? Each figure is different. Thanks

댓글 수: 1

I do not understand the question:
How do I label each figure so they save differently within each name?
What should be different? The file name or the title of the figure?

댓글을 달려면 로그인하십시오.

 채택된 답변

Chad Greene
Chad Greene 2014년 6월 25일
편집: Chad Greene 2014년 6월 25일

0 개 추천

You could set the name of each figure by
set(gcf,'name',['figure number ',num2str(figNum(i))])
Then when saving each figure use
get(gcf,'name')
to get the name of the figure. Then save the figure with that name.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

질문:

2014년 6월 25일

댓글:

Jan
2014년 6월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by