Effacer les filtres
Effacer les filtres

set figure title in a loop

1 vue (au cours des 30 derniers jours)
zilai si
zilai si le 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 ......

Réponse acceptée

madhan ravi
madhan ravi le 14 Mai 2019
saveas( gcf, sprintf('TruncatedPowerFunc_%d',N),'epsc');

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by