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에서 Grid 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