How to fit a circle in the marked area of the image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to fit a circle at the peak (the marked area) of the wavy surface. How can I do that?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315216/image.jpeg)
0 Kommentare
Antworten (2)
KSSV
am 13 Jun. 2020
If you fix the center C, radius R of the circle. You can plot circle using.
C = rand(1,2) ; % center of circle
R = 1. ; % Radius of the circle
th = linspace(0,2*pi) ;
x = C(1)+R*cos(th) ;
y = C(2)+R*sin(th) ;
plot(x,y) ;
0 Kommentare
Image Analyst
am 13 Jun. 2020
Using the (x,y) coordinates, you can fit a circle using the FAQ:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Mathematics and Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!