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?
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
更多回答(1 个)
Walter Roberson
2016-10-27
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Orange 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!