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

4 vues (au cours des 30 derniers jours)
I have no idea about doing this. I did try so many ways.
  4 commentaires
KSSV
KSSV le 2 Nov 2018
What problem you have with above?
Nanthanon Visitpongaree
Nanthanon Visitpongaree le 2 Nov 2018
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.

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 2 Nov 2018
Modifié(e) : KSSV le 2 Nov 2018
[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 commentaires
Nanthanon Visitpongaree
Nanthanon Visitpongaree le 2 Nov 2018
I'm sorry. I didn't put the negative values in the excel.
Nanthanon Visitpongaree
Nanthanon Visitpongaree le 4 Nov 2018
Modifié(e) : Nanthanon Visitpongaree le 4 Nov 2018
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by