Angles to arrow representation
조회 수: 15 (최근 30일)
이전 댓글 표시
I have attached an Excel sheet which includes angles ranging from 0-90 degrees. I want the arrow representation for those values.
Thank you.
댓글 수: 1
KSSV
2020년 11월 19일
You need to have radius along with theta. Than you can use quiver to plot the arrows.
채택된 답변
KALYAN ACHARJYA
2020년 11월 19일
data=xlsread('New Microsoft Excel Worksheet.xlsx');
l=0.5; % Length of the arrow
for i=1:6
for j=1:6
angle=data(i,j);
u=l*cos(angle); % convert polar (theta,r) to cartesian
v=l* sin(angle);
quiver(i,j,u,v,'linewidth',1.5);
hold on;
end
end
grid on;
May be other smart ways also to do the same

댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!