how to print plot with title filename
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ludovico Riello
el 6 de Jul. de 2021
Respondida: KSSV
el 6 de Jul. de 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');
0 comentarios
Respuesta aceptada
KSSV
el 6 de Jul. de 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');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!