
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!