how we can fill just sector of a circle?
13 次查看(过去 30 天)
显示 更早的评论
% 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?
0 个评论
采纳的回答
Thorsten
2014-12-15
alpha = linspace(10, 50)/180*pi;
patch([0 cos(alpha) 0], [0 sin(alpha) 0], 'r')
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!