Question about impositionrect value updates
Mostra commenti meno recenti
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 Commenti
Image Analyst
il 14 Lug 2012
Why do you want that? Why are all the intermediate positions important to save rather than just the initial and final positions?
Raldi
il 15 Lug 2012
Image Analyst
il 15 Lug 2012
Why are you not going to reply?
Raldi
il 15 Lug 2012
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Objects in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!