![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/357457/image.png)
draw angle between two vectors
9 次查看(过去 30 天)
显示 更早的评论
Please every one, how I can draw this figure in Matlab
as in the attachment figure
0 个评论
采纳的回答
Star Strider
2020-9-7
Try this:
figure
hp{1} = polarplot([45 160; 0 0]*pi/180, [1 1; 0 0], '--k', 'DisplayName','Induction');
hold on
hp{2} = polarplot([160; 0]*pi/180, [1; 0], '-k', 'DisplayName','Field');
polarplot([40 50; 45 45]*pi/180, [0.8 0.8; 1 1], '-k')
polarplot([155 165; 160 160]*pi/180, [0.8 0.8; 1 1], '-k')
hold off
lgd = legend([hp{1}(1), hp{2}(1)], 'Induction','Field', 'Location','southoutside');
title(lgd, '\itB\rm at 45°')
producing:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/357457/image.png)
.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!