Angles to arrow representation
17 ビュー (過去 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!