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
KSSV
KSSV 2018년 11월 2일
What problem you have with above?
Nanthanon Visitpongaree
Nanthanon Visitpongaree 2018년 11월 2일
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월 2일
I'm sorry. I didn't put the negative values in the excel.
Nanthanon Visitpongaree
Nanthanon Visitpongaree 2018년 11월 4일
편집: 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