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 ......

 Akzeptierte Antwort

madhan ravi
madhan ravi am 14 Mai 2019

0 Stimmen

saveas( gcf, sprintf('TruncatedPowerFunc_%d',N),'epsc');

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by