필터 지우기
필터 지우기

How to draw a "personal" arrow in a axes (GUI)?

조회 수: 7 (최근 30일)
Óscar
Óscar 2014년 10월 20일
댓글: Jan 2014년 10월 21일
hello, I am doing a GUI with an axes and several buttons, and i have to be able to draw a few kinds of arrows. By now, if have found out the function: annotation('arrow'...), The problem I have with this function is that I want the arrow to be only inside the axes, not everywhere, so I'm wondering if there is a way do it.
Furthermore I'd like to draw my own arrow, the one shown in the following picture (or similar...)

답변 (1개)

Jan
Jan 2014년 10월 20일
You can use the plot() or line() commands to draw whatever you want.
Did you search for "arrow" in the FileExchange already?
  댓글 수: 2
Óscar
Óscar 2014년 10월 21일
but to draw that do i need the "function" of the curved line and then i add the arrowhead?
I know it may be a stupid question but i'm kind of new with matlab thanks
Jan
Jan 2014년 10월 21일
You can define the coordinates by a function or manually. You can draw the array with a graphics program and import it as image.
Again: Did you search in the FileExchange already? You find dozens of implementations for drawing arrows there. Looking in the code will reveal different possible methods.

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by