Draw multiple circles in one image

10 views (last 30 days)
Hello, everyone,
I need your help. I wanted to draw several circles in one picture and edit them later. Attached is a screen shot. thank you for your help

Accepted Answer

KSSV on 27 Jul 2022
Edited: KSSV on 27 Jul 2022
R = 2:2:10 ;
th = linspace(0,2*pi) ;
hold on
for i = 1:length(R)
x = R(i)*cos(th) ;
y = R(i)*sin(th) ;
axis equal
Image Analyst
Image Analyst on 12 Aug 2022
I have no idea what you want to do. All professional programmers put comments into their code. Where are yours? Explain every section or line of your code up until the plotting part.
Walter Roberson
Walter Roberson on 12 Aug 2022
You cannot reliably recreate the roi given just the subimage and comparing it to 0, as interior pixels could be 0.
You could, it is true, take the subimage and fit a circle to it to recreate the roi.
But if you are going to need the roi later, just record the mask variables as well, it saves a lot of trouble.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!