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!