I am wondering how I can draw circle seperated by two color...

3 views (last 30 days)
Haksun Lee
Haksun Lee on 25 Oct 2012
Hi.. all
As has been mentioned at title, I'd like to draw circle with two color.
For example, upper half circle is red color and lower half circle is blue color.
Which code can I use to draw this circle?
Thank you for reading my writing...
Have a nice day!

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 25 Oct 2012
Edited: Azzi Abdelmalek on 25 Oct 2012
hold on
or more general
c=1+2j % circle centre
r=4 % radius
hold on
axis square

Haksun Lee
Haksun Lee on 25 Oct 2012
Hi! Azzi Abdelmalek.. Thank your for your reply... I resolved the problem complete thanks to you..but I have another question.
Utimately, I am planning to draw two colored circle(including gray, yellow) of folling picture.
Using above reply, which code can I use to draw special circle?
I'd like to accept advice from many people as far as possible.


Community Treasure Hunt

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

Start Hunting!