
Plot circle with radius r and roughness amplitude e
19 次查看(过去 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!