Datatip issue
Mostra commenti meno recenti
I have an image and want to create a datatip. Then take its position. My problem is how do I 'wait' for the datatip to be create before using its position as a variable.
global X; %constant image, eg. imread('camera.tif');
datacursormode on;
i = cursor_info.Position;
k = i(1,1);
j = i(1,2);
a = X(k,:);
u = X(:,:);
So the issue is i = cursor_info.Position throws an error because it is trying to execute before it is created. How do i pause or hold the program until the datatip is export and named 'cursor_info'? or is there another method?
Thanks, Colm
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Performance 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!