how can I draw flashing arrow on the plot?

Hello, how can I draw flashing arrow on the plot by use 'pause' function?
Thanks a lot!

Answers (1)

t = text(0.5,0.5,'\leftarrow');
for blinks=1:10
set(t,'Visible','off')
pause(0.5)
set(t,'Visible','on')
pause(0.5)
end

3 Comments

Thank you so much for your answer!!!!!!!!!!
oh, can't I make a one flash for the arrow and make it gone?
Sure, just add a set(t,'Visible','off') after the loop.
If this answer helped you, please mark it as accepted answer. It will give us both reputation points.

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Asked:

on 17 Mar 2017

Commented:

Rik
on 19 Mar 2017

Community Treasure Hunt

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

Start Hunting!