필터 지우기
필터 지우기

how can I draw flashing arrow on the plot?

조회 수: 5 (최근 30일)
Jinah Lee
Jinah Lee 2017년 3월 17일
댓글: Rik 2017년 3월 19일
Hello, how can I draw flashing arrow on the plot by use 'pause' function?
Thanks a lot!

답변 (1개)

Rik
Rik 2017년 3월 17일
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
Jinah Lee
Jinah Lee 2017년 3월 17일
oh, can't I make a one flash for the arrow and make it gone?
Rik
Rik 2017년 3월 19일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by