![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/370408/image.png)
Trying to colour a circle but not all only one qudrant want to colour
2 次查看(过去 30 天)
显示 更早的评论
How can i colour a quadrant of circle by yellow and rest by any colour
0 个评论
回答(1 个)
KALYAN ACHARJYA
2020-10-3
编辑:KALYAN ACHARJYA
2020-10-3
viscircles([0,0],1);
hold on;
alpha=linspace(0,90)/180*pi;
% Manage Angles ^^ here Quadrant angles
patch([0 cos(alpha) 0], [0 sin(alpha) 0], 'b');
axis off;
Result
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/370408/image.png)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!