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

2 ビュー (過去 30 日間)
rishika yadav
rishika yadav 2020 年 10 月 3 日
編集済み: KALYAN ACHARJYA 2020 年 10 月 3 日
How can i colour a quadrant of circle by yellow and rest by any colour

回答 (1 件)

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

カテゴリ

Find more on Colormaps in Help Center and File Exchange

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by