Updating plot title for a few hundred figure using a loop
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have multiple figures for which I want to update my title from a variable (Datetime) in my workspace. Can you pleasehelp me figure it out.
Thankyou
0 个评论
回答(1 个)
Siddharth Bhutiya
2021-2-8
You can convert your datetime variable into a string and pass it as an input to the title command
x = 1:10;
dt = datetime;
plot(x);
title(string(dt));
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Title 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!