Question about impositionrect value updates
이전 댓글 표시
The code below prints each time the position of the rectangle, but how can i also store that position in a variable?
close all, plot(1:10)
h = impositionrect(gca, [4 4 2 2]);
api = iptgetapi(h);
api.addNewPositionCallback(@(p) disp(p));
Thanks
댓글 수: 4
Image Analyst
2012년 7월 14일
Why do you want that? Why are all the intermediate positions important to save rather than just the initial and final positions?
Raldi
2012년 7월 15일
Image Analyst
2012년 7월 15일
Why are you not going to reply?
Raldi
2012년 7월 15일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Objects에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!