3D Cylindical Coordinates plot

How can i 3D plot a function in matlab, in cylindrical coordinates?
my function : Z = ln(r) + 4*theta
i tried converting to cartesian coordinates, then plotting but at some points function jumps up or down (i think due to trigonometric functions) , so i wanted to see it in cylindrical coordinates. That supposed to be superposition of a vortex and source. Thanks for your time.

6 件のコメント

KSSV
KSSV 2020 年 6 月 1 日
Show us the code you tried.
Deniz Ilayda Bilgen
Deniz Ilayda Bilgen 2020 年 6 月 1 日
[X,Y] = meshgrid(-5:.25:5);
Z = 2.*log((X.^2+Y.^2).^0.5)+4.*atan(Y./X);
surf(X,Y,Z)
Deniz Ilayda Bilgen
Deniz Ilayda Bilgen 2020 年 6 月 1 日
but i want to do this in 3D cylindrical coordinates if possible
Deniz Ilayda Bilgen
Deniz Ilayda Bilgen 2020 年 6 月 1 日
Thanks fot the answer but i want to plot my function in cylindrical coordinates without changing it into cartesian one (and returning back to cylindrical);
Z = ln(r) + 4*theta
i want to plot that one. (Not the cartesian one )
maybe a 3D version of polarplot?
KSSV
KSSV 2020 年 6 月 1 日
The link I gave you convers the cartesian coordinates into cylindrical coordinates.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

質問済み:

2020 年 6 月 1 日

コメント済み:

2020 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by