mArrow3 function and text in a 3D figure

조회 수: 2 (최근 30일)
Franta Cymorek
Franta Cymorek 2017년 3월 7일
댓글: Franta Cymorek 2017년 3월 9일
I'm using the mArrow3 function, but it does not work always, ussually not. The code:
hold on;
mArrow3([0 0 0],[1 0 0],'lineWidth',0.0000002,'color','red','facealpha',0.05);
mArrow3([0 0 0],[0 1 0],'lineWidth',0.0000002,'color','red','facealpha',0.05);
mArrow3([0 0 0],[0 0 1],'lineWidth',0.0000002,'color','red','facealpha',0.05);
hold off
Could you please give me any hint? It doesn't show any errors, just doesn't appear for most of the time. But on it's own it just works fine.
One more question, do you know how to put titles to X, Y and Z directions? I mean appearing it just next to the arrows.
Now about the text command. I need to put three different texts in three different places - with just text command I put everywhere the same text. Is there any similar command to the text command?
  댓글 수: 2
Jan
Jan 2017년 3월 7일
Franta Cymorek
Franta Cymorek 2017년 3월 7일
I have downloaded the function and it's not working properly, that's the reason I am asking here.

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

채택된 답변

Jan
Jan 2017년 3월 7일
What exactly does "most of the time" mean? Please post some code, which reproduce the problem.
The lineWidth of 0.0000002 is very small. My first idea is, that the arrow is not visible, because it is far to thin. Did you try it with something less slender?
  댓글 수: 16
Jan
Jan 2017년 3월 9일
I assume that this works. The code of mArrow3 does not look trivial, but with the debugger you can examine, where what is drawn.
Franta Cymorek
Franta Cymorek 2017년 3월 9일
Yes, this works exactly how I wished it. Is there any link describing how to change the cone color and so on?

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by