Azzera filtri
Azzera filtri

plot figure title error

3 visualizzazioni (ultimi 30 giorni)
il147
il147 il 2 Mar 2022
Commentato: Arif Hoq il 2 Mar 2022
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?

Risposta accettata

Arif Hoq
Arif Hoq il 2 Mar 2022
Modificato: Arif Hoq il 2 Mar 2022
try this
figure
year=2003;
mm=05;
dd=01;
title([ 'Date',': ', num2str(year),' / ' num2str(mm,'%.2d'),' / ', num2str(dd,'%.2d')])
  2 Commenti
il147
il147 il 2 Mar 2022
It works!!! Thanks!!
Arif Hoq
Arif Hoq il 2 Mar 2022
my pleasure

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by