How to fit a circle in the marked area of the image?
1 次查看(过去 30 天)
显示 更早的评论
I want to fit a circle at the peak (the marked area) of the wavy surface. How can I do that?
0 个评论
回答(2 个)
KSSV
2020-6-13
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!