How to Segment an annulus made out of two circles
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
r = 1; %inner radius
xCenter = 5;
yCenter = 5;
theta = 0 : 0.01 : 2*pi;
x = r * cos(theta) + xCenter;
y = r * sin(theta) + yCenter;
plot(x, y, 'LineWidth', 3);
axis square;
xlim([2 8]);
ylim([2 8]);
grid on;
hold on 
R = 2; %outer radius
XCenter = 5;
YCenter = 5;
theta = 0 : 0.01 : 2*pi;
X = R * cos(theta) + XCenter;
Y = R * sin(theta) + YCenter;
plot(X, Y, 'LineWidth', 3);
axis square;
xlim([2 8]);
ylim([2 8]);
grid on;
hold off
I need to discretize my ring into equal pieces using nodes (similar to the photo above). How can I go about doing this for any number of segments?댓글 수: 0
답변 (1개)
  Image Analyst
      
      
 2022년 11월 10일
        To specify sectors, adjust the starting and stopping angles when you make theta:
theta = 0 : 0.01 : 2*pi;
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
