![](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
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
How can i colour a quadrant of circle by yellow and rest by any colour
0 comentarios
Respuestas (1)
KALYAN ACHARJYA
el 3 de Oct. de 2020
Editada: KALYAN ACHARJYA
el 3 de Oct. de 2020
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 comentarios
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!