Plot a circle onto a 3d graph
52 次查看(过去 30 天)
显示 更早的评论
If I wanted to plot a filled in black circle at a specific coordinate, with no specific radius, say at x = 50, y= 55, z =60, how would I go about doing this? I want to use the plot3 function but that is as far as I can get.
plot3(50,55, 60);
0 个评论
采纳的回答
KSSV
2017-9-4
C = [50,55, 60] ; % center of circle
R = 1. ; % Radius of circle
teta=0:0.01:2*pi ;
x=C(1)+R*cos(teta);
y=C(2)+R*sin(teta) ;
z = C(3)+zeros(size(x)) ;
patch(x,y,z,'k')
hold on
plot3(C(1),C(2),C(3),'*r')
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!