Filter löschen
Filter löschen

how can I draw flashing arrow on the plot?

5 Ansichten (letzte 30 Tage)
Jinah Lee
Jinah Lee am 17 Mär. 2017
Kommentiert: Rik am 19 Mär. 2017
Hello, how can I draw flashing arrow on the plot by use 'pause' function?
Thanks a lot!

Antworten (1)

Rik
Rik am 17 Mär. 2017
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 Kommentare
Jinah Lee
Jinah Lee am 17 Mär. 2017
oh, can't I make a one flash for the arrow and make it gone?
Rik
Rik am 19 Mär. 2017
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by