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

I have no idea about doing this. I did try so many ways.

4 件のコメント

Stephan
Stephan 2018 年 11 月 2 日
編集済み: Stephan 2018 年 11 月 2 日
Please show us your attempts so far
Nanthanon Visitpongaree
Nanthanon Visitpongaree 2018 年 11 月 2 日
I try to use this.
[X,Y,Z] = sphere(50); contour3(X,Y,Z);
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 日

0 投票

[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 日
Thank you very much but this isn't what I want to do I want to make circle line in 3D graph.
KSSV
KSSV 2018 年 11 月 2 日
Edited the code.
Nanthanon Visitpongaree
Nanthanon Visitpongaree 2018 年 11 月 2 日
Thank you very much!! I'm very new for this. What about the -z axis ? It doesn't show. :D
KSSV
KSSV 2018 年 11 月 2 日
It is there.....check the figure..
Nanthanon Visitpongaree
Nanthanon Visitpongaree 2018 年 11 月 2 日
I can't see the other half. T T
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 件)

カテゴリ

ヘルプ センター および File ExchangePolar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by