how can i make a pointer to move in the desired shape? i tried using comet it leaves a tail behind. how can the tail disappear?
Ältere Kommentare anzeigen
apart from comet, what else tool/function can be employed to move a pointer in a desired shape path without showing the path being traced.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 27 Okt. 2016
1 Stimme
Create a small image of the appropriate shape. Use image() to create an image object for it, and use the AlphaData parameter to make the image transparent in the parts that are outside the cursor.
Now as you go through the loop, do not plot anything: instead, set() the XData and YData properties of the image object. That will move the image.
Kategorien
Mehr zu Graphics Object Properties 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!