how to print plot with title filename

1 次查看(过去 30 天)
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');

采纳的回答

KSSV
KSSV 2021-7-6
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 个)

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by