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!