
Trying to colour a circle but not all only one qudrant want to colour
조회 수: 4 (최근 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

댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!