I need to draw a line on a globe from an anchor point to another point derfined by the cursor location. As I move the cursor to a new point I need to erase the first line and draw a new one. How do I use animated line to do this?
Ältere Kommentare anzeigen
if true
% code
end
% This used to work
% Erase old line if it exists
if (~isempty(linex));
line(linex, liney, 'Color','black', 'Erasemode','xor');
end
[linex, liney] = gcarc(lat, long, distance.lat, distance.long); % great circle arc line to be drawn
Akzeptierte Antwort
Weitere Antworten (1)
rikshapiro
am 13 Aug. 2015
0 Stimmen
Kategorien
Mehr zu Animation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!