Adding additional Information to a figure/plot

Hello,
im plotting some data right now and i want to add additional info to the plot, like mean value or variance(in some space on the figure). Is that possible? Thx for any help :)

답변 (3개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 6일
편집: Azzi Abdelmalek 2013년 3월 6일

0 개 추천

Use text command

댓글 수: 1

I think the best way is this
[x,y]=ginput % click on the location you want+ Return
text(x,y,'yourtext')

댓글을 달려면 로그인하십시오.

MatlabFollower
MatlabFollower 2013년 3월 6일
편집: MatlabFollower 2013년 3월 6일

0 개 추천

Hi, thank you for your advice :) Is there a way to make matlab automatically choose a proper position for the text? because doing it by hand appears to be a bit tough
edit:
this is close to what i want so i take this one, thank you for your help :)
Robert Cumming
Robert Cumming 2013년 3월 6일

0 개 추천

You could get the x and y limits from your plot and then calculate a position for the text from that...
Or you could put it in the title!? Or the legend!?
many options

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2013년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by