Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

angles to arrows representation

조회 수: 1 (최근 30일)
Kalyan Samala
Kalyan Samala 2020년 11월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
I have an excel which contains angles and want to convent them into arrows representation.
  댓글 수: 2
Chunru
Chunru 2021년 8월 2일
What is "arrows representation"? How it relates to your data?
Rik
Rik 2021년 8월 2일
Have a read here and here. It will greatly improve your chances of getting an answer.

답변 (2개)

Bjorn Gustavsson
Bjorn Gustavsson 2021년 8월 2일
Arrow in 2-D:
r_from_origin = l*[cos(theta),sin(theta)];
Arrow in 3-D:
r_from_origin = l*[cos(phi)*sin(theta),sin(phi)*sin(theta),cos(theta)];
Functions to plot arrows neatly: arrow and arrow3
HTH

Image Analyst
Image Analyst 2021년 8월 2일
How about annotation()?
annotation(lineType,x,y) creates a line or arrow annotation extending between two points in the current figure. Specify lineType as 'line', 'arrow', 'doublearrow', or 'textarrow'. Specify x and y as two-element vectors of the form [x_begin x_end] and [y_begin y_end], respectively.
or the quiver() function?

Community Treasure Hunt

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

Start Hunting!

Translated by