Azzera filtri
Azzera filtri

display values in the title of a figure

3 visualizzazioni (ultimi 30 giorni)
Asl
Asl il 4 Nov 2013
Modificato: Jan il 4 Nov 2013
title({'Mean', mean(mean(aa(:,:)))})
display the word "Mean" and value mean(mean(aa(:,:))) in 2 different rows on the titlt of the figure
how can I display both in the same row? Thanks

Risposte (1)

Jan
Jan il 4 Nov 2013
Modificato: Jan il 4 Nov 2013
title(['Mean', num2str( mean(mean(aa(:,:)))) ])
or shorter:
title ( ['Mean ', num2str( mean( aa(:) ) ) ] );

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by