How to draw a filled semi circle?(like the one in the image) Thanks,

21 views (last 30 days)

Accepted Answer

Star Strider
Star Strider on 13 Nov 2014
This works:
r = 1;
semicrc = r.*[cos(0:0.1:pi); sin(0:0.1:pi)];
figure(1)
area(semicrc(1,:), semicrc(2,:), 'FaceColor','b')
axis equal

More Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!