Filter löschen
Filter löschen

how we can fill just sector of a circle?

5 Ansichten (letzte 30 Tage)
vatankhah
vatankhah am 15 Dez. 2014
Kommentiert: KALYAN ACHARJYA am 3 Okt. 2020
% 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?

Akzeptierte Antwort

Thorsten
Thorsten am 15 Dez. 2014
alpha = linspace(10, 50)/180*pi;
patch([0 cos(alpha) 0], [0 sin(alpha) 0], 'r')
  3 Kommentare
Image Analyst
Image Analyst am 5 Mär. 2015
How about
h = pie(data);
KALYAN ACHARJYA
KALYAN ACHARJYA am 3 Okt. 2020
+1

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by