Plotting path on torus

13 ビュー (過去 30 日間)
noNickame
noNickame 2019 年 7 月 1 日
回答済み: darova 2019 年 7 月 1 日
Hy everyone!
I'm quite new at Matlab and so I try to get a little bit familiar with plots.
Due to this I already managed to create a 3D surface plot of a torus and an plot3 - Plot of a helix.
Now my next goal is to produce a plot where I visualize some kind of path on my torus (I'm not sure, whether "geodesic on a torus" is the correct name), which finally should look a little bit like a toroidal coil with a copper winding on it.
This is my parametrization for the torus:
x = ( (a+b)/2 + (b-a)/2 .*cos(theta) ) .*cos(phi)
y = ( (a+b)/2 + (b-a)/2 .*cos(theta) ) .*sin(phi)
z = (b-a)/2 .* sin(theta)
Unfortunatelly my tries failed, so I would be glad if some on you can help me!
Thanks in advance!

回答 (1 件)

darova
darova 2019 年 7 月 1 日
Look HERE
Take a closer look on formulas

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by