display values in the title of a figure

2 ビュー (過去 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 Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by