how can i add text inside subplot(1,3,3) writing code

16 次查看(过去 30 天)
  2 个评论
Rik
Rik 2018-7-3
What is your actual question?
Have a read here and here. It will greatly improve your chances of getting an answer.
zainab srabony
zainab srabony 2018-7-3
编辑:zainab srabony 2018-7-3
this is my code.and i just put text on subplot(1,3,3) in output figure.

请先登录,再进行评论。

回答(1 个)

jonas
jonas 2018-7-3
Here are two methods. In the first one, x and y refers to the axis coordinates. Make sure you set the current axis to the correct subplot
text(x,y,'text')
In the second one, x and y refers to the figure coordinates
annotation('textbox',[x y w h],...
'string','text',...
'linestyle','none')

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by