フィルターのクリア

plot figure title error

3 ビュー (過去 30 日間)
il147
il147 2022 年 3 月 2 日
コメント済み: Arif Hoq 2022 年 3 月 2 日
close all
figure
year=2003
mm=5;
dd=1;
title(['data',year,mm,dd])
I'd like to name title name with date(year,month,day) but It didn't work
Somebody know why it does?

採用された回答

Arif Hoq
Arif Hoq 2022 年 3 月 2 日
編集済み: Arif Hoq 2022 年 3 月 2 日
try this
figure
year=2003;
mm=05;
dd=01;
title([ 'Date',': ', num2str(year),' / ' num2str(mm,'%.2d'),' / ', num2str(dd,'%.2d')])
  2 件のコメント
il147
il147 2022 年 3 月 2 日
It works!!! Thanks!!
Arif Hoq
Arif Hoq 2022 年 3 月 2 日
my pleasure

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by