How to plot many circle in 3D from array radius and different height?

4 次查看(过去 30 天)
I have no idea about doing this. I did try so many ways.
  4 个评论
Nanthanon Visitpongaree
I want to make many circles like this but I have no idea how to do I attach the set of radius and the location of z-axis.

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2018-11-2
编辑:KSSV 2018-11-2
[num,txt,raw] = xlsread('32 coils Parameters.xlsx') ;
th = linspace(0,2*pi) ;
x = cos(th) ;
y = sin(th) ;
figure
hold on
for i = 1:size(num) ;
xc = num(i,2)*x ;
yc = num(i,2)*y ;
zc = repmat(num(i,3),1,100) ;
plot3(xc,yc,zc)
end
view(3)
axis equal
  7 个评论
Nanthanon Visitpongaree
编辑:Nanthanon Visitpongaree 2018-11-4
Hi, Thank you very much with the previous code. I want your help again. How to rotate the 32 circular coils with the inclination of 30 degrees like this picture?
Thank you. From this
to this

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by