필터 지우기
필터 지우기

set figure title in a loop

조회 수: 1 (최근 30일)
zilai si
zilai si 2019년 5월 14일
답변: madhan ravi 2019년 5월 14일
Hello everyone, I want to save figure in a loop like this:
for N = 1:10
saveas( gcf, 'TruncatedPowerFunc_N','epsc');
but the title is always 'TruncatedPowerFunc_N', I want the title to change with N in every iteration like:
TruncatedPowerFunc_1 TruncatedPowerFunc_2 TruncatedPowerFunc_3 ......

채택된 답변

madhan ravi
madhan ravi 2019년 5월 14일
saveas( gcf, sprintf('TruncatedPowerFunc_%d',N),'epsc');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by