convert 2D polar plot into 3D balloon
5 ビュー (過去 30 日間)
古いコメントを表示
Hi there,
I currently have some code that plots a 2D polar plot in MATLAB over theta values 0 to 2*pi radians. The polar plots appear fine. I'm wondering if anyone knows a convenient method for taking this 2D polar plot and creating a 3D balloon of this pattern (i.e. about phi angle values -pi/2 to pi/2)? That is, taking the horizontal 2D pattern and copying it around the 0-degree axis to form a 3D balloon.
Any assistance would be greatly appreciated.
Regards,
Mark
0 件のコメント
回答 (1 件)
Star Strider
2015 年 11 月 9 日
The File Exchange has several 3D polar plot contributions. See the search on polar 3D for 54 of them.
6 件のコメント
Star Strider
2015 年 11 月 12 日
As always, my pleasure!
Scaling is relatively easy in the Z direction. Simply multiply the Z produced by cylinder by whatever you want to stretch or squash it vertically. Normalise your function to the normal cylinder height of 1, then stretch the cylinder. I did that here in the last bit of code, although I didn’t post the plot image.
I still have only a vague idea of what you’re doing. If you’re going to use rotate, see if the hgtransform function and its friends can work in your application. They might make your work easier.
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!