how to print plot with title filename

1 visualizzazione (ultimi 30 giorni)
Ludovico Riello
Ludovico Riello il 6 Lug 2021
Risposto: KSSV il 6 Lug 2021
Hello,
I have 700+ plots from a for cicle and I distinguish them by the title (which states the conditions: head, neck, etc.)
I would like to save some plots with the command print, and I would like them to be called after the same conditions expressed in the title, how can I do this?
Thank you!
figure()
plot(time,BrACOM)
xlabel('Time [s]');
ylabel('Acc [g]');
legend('x','y','z');
title(['Acc Brain COM:' ' ' head ' ' neck ' ' helmet ' ' impact ' ' energy]);
print('???','-dpng','-r600');

Risposta accettata

KSSV
KSSV il 6 Lug 2021
figure()
plot(time,BrACOM)
xlabel('Time [s]');
ylabel('Acc [g]');
legend('x','y','z');
str = ['Acc Brain COM:' ' ' head ' ' neck ' ' helmet ' ' impact ' ' energy] ;
title(str);
print(str,'-dpng','-r600');

Più risposte (0)

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by