Filter löschen
Filter löschen

set figure title in a loop

1 Ansicht (letzte 30 Tage)
zilai si
zilai si am 14 Mai 2019
Beantwortet: madhan ravi am 14 Mai 2019
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
saveas( gcf, sprintf('TruncatedPowerFunc_%d',N),'epsc');

Weitere Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by