display values in the title of a figure
Ältere Kommentare anzeigen
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
Antworten (1)
title(['Mean', num2str( mean(mean(aa(:,:)))) ])
or shorter:
title ( ['Mean ', num2str( mean( aa(:) ) ) ] );
Kategorien
Mehr zu Grid Lines, Tick Values, and Labels finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!