how can i add text inside subplot(1,3,3) writing code
16 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191638/image.jpeg)
2 个评论
回答(1 个)
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')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!