Trying to colour a circle but not all only one qudrant want to colour

1 visualizzazione (ultimi 30 giorni)
How can i colour a quadrant of circle by yellow and rest by any colour

Risposte (1)

KALYAN ACHARJYA
KALYAN ACHARJYA il 3 Ott 2020
Modificato: KALYAN ACHARJYA il 3 Ott 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;
Disclaimer: 2nd part of the code from Thorsten this answer
Result

Categorie

Scopri di più su Colormaps in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by