How can i plot a tube where i can control the eccentricity, radius and thickness?

7 ビュー (過去 30 日間)
Andre du Plessis
Andre du Plessis 2020 年 3 月 12 日
回答済み: Shresth Sharma 2020 年 3 月 24 日
I've tried using the plot(plot::Tube function but to no avail

回答 (1 件)

Shresth Sharma
Shresth Sharma 2020 年 3 月 24 日
Hi,
It is my understanding that you are having problem on how to plot tubes where the inputs for the plot should be controlled by you. For tube plots you can use the function which is available on file exchange where you can control the inputs and the get the desired tube as the output.
The link for the function available on file exchange is given below.
For this particular function you can try the following example for more clarity
t=linspace(0,2*pi,50);
tubeplot([cos(t);sin(t);0.2*(t-pi).^2],0.1);
There is another method for plotting tubes available on MATLAB, streamtube. Even here the input can be varied by the user and the plot created is through the vector volume data provided.
The documentation link for ‘streamtube’ is given below

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by