How do position coordinates work on a subplot?
显示 更早的评论
I have a subplot filled with one video up top and two graphs underneath. In order to get the ratio right I used a subplot(4,4,1:12) for the video, subplot(4,4,13:14) for one graph and subplot(4,4,15:16) for the other. I am now trying to use insertText() and insertShape() to add labels on top of the video but I'm not sure how the position works in those two functions. Can anyone clariffy?
采纳的回答
更多回答(1 个)
It appears that those [x,y] positions are the image indices from the upper left of the image. If you look at the two examples and where the text is inserted, the y position is lower in the image as the position increases and moves to the right as x postion increases. That would be consistent with images in MATLAB on axes with y-axis decreasing.
I don't have the TB so that's just reading the doc and looking at the examples...a little experimentation out to answer the question pretty quickly.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!