how we can fill just sector of a circle?

조회 수: 3 (최근 30일)
vatankhah
vatankhah 2014년 12월 15일
댓글: KALYAN ACHARJYA 2020년 10월 3일
% Coordinates of circle x0 = x + r *cos(angle); y0 = y +r *sin(angle);
plot(x0,y0,'k')
i can draw a circle in a matrix form. but i dont know how to fill just a sector of it?
for example to fill a sector from angle 10 to 50 degree
any help?

채택된 답변

Thorsten
Thorsten 2014년 12월 15일
alpha = linspace(10, 50)/180*pi;
patch([0 cos(alpha) 0], [0 sin(alpha) 0], 'r')
  댓글 수: 3
Image Analyst
Image Analyst 2015년 3월 5일
How about
h = pie(data);
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 10월 3일
+1

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

추가 답변 (0개)

카테고리

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