display values in the title of a figure

3 次查看(过去 30 天)
Asl
Asl 2013-11-4
编辑: Jan 2013-11-4
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

回答(1 个)

Jan
Jan 2013-11-4
编辑:Jan 2013-11-4
title(['Mean', num2str( mean(mean(aa(:,:)))) ])
or shorter:
title ( ['Mean ', num2str( mean( aa(:) ) ) ] );

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by