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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315216/image.jpeg)
댓글 수: 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!