
Plot circle with radius r and roughness amplitude e
조회 수: 21 (최근 30일)
이전 댓글 표시
How to model or plot circular cross-section of radius (r) with roughness of amplitude (e) on the circumference.
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 5월 17일
Try this
r = 1; % radius
e = 0.15;
theta = linspace(0, 2*pi, 100);
R = r*ones(size(theta)) + (rand(size(theta))-0.5).*e/2;
x = R.*cos(theta);
y = R.*sin(theta);
plot(x, y, '.-');
axis([-r-0.5 r+0.5 -r-0.5 r+0.5])

댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!