필터 지우기
필터 지우기

draw angle between two vectors

조회 수: 4 (최근 30일)
Hassan Abdelazeem
Hassan Abdelazeem 2020년 9월 7일
댓글: Star Strider 2020년 9월 8일
Please every one, how I can draw this figure in Matlab
as in the attachment figure

채택된 답변

Star Strider
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:
.
  댓글 수: 2
Hassan Abdelazeem
Hassan Abdelazeem 2020년 9월 7일
Thank you indeed for your help really thank you
Star Strider
Star Strider 2020년 9월 7일
As always, my pleasure!

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

추가 답변 (1개)

Hassan Abdelazeem
Hassan Abdelazeem 2020년 9월 7일
The figure appear but I recieved this error message as in the attachment file
Regards
  댓글 수: 3
Hassan Abdelazeem
Hassan Abdelazeem 2020년 9월 8일
OK, I am so sorry about that now, it is working in a good manner , I appraciate your effort , thank you indded
Regards
Star Strider
Star Strider 2020년 9월 8일
As always, my pleasure!

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by