Effacer les filtres
Effacer les filtres

How to use datacursormode to collect multiple points without using keyboard

1 vue (au cours des 30 derniers jours)
yaron
yaron le 4 Jan 2015
Modifié(e) : yaron le 4 Jan 2015
Excuse me if i am posting this at the wrong place. If this is the case, please refer me to the right place.
Problem: Using datacursormode to collect multiple points without using keyboard.(Matalb 2013b)
.
Solution: (This example taken from a code built for guide, hence the handles....)
r=datacursormode(get(handles.axes2,'Parent'));
set(r,'DisplayStyle','window');
info=getCursorInfo(r);
while (isempty(info) == 1)
info=getCursorInfo(r);
pause(0.1);
end
points3D=info.Position;
datacursormode off; % delete getcursorinfo(r); => makes info empty
datacursormode on;
The time on pause can be changed, but I found 0.1 gives you a repsose quick enough to click the points quickly without dropping.

Réponses (0)

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by