필터 지우기
필터 지우기

Plotting Implicit Function in Polar Coordinate

조회 수: 9 (최근 30일)
Teerapong Poltue
Teerapong Poltue 2021년 1월 18일
답변: Divija Aleti 2021년 2월 5일
I can plot this equation - cos(x) + cos(y) + cos(z) = 0
with cartician coordinate using this code.
syms x y z
f = @(x,y,z) cos(x) + cos(y) + cos(z);
a = 0:0.1:2*pi;
b = 0:0.1:2*pi;
c = 0:0.1:2*pi;
[X,Y,Z] = meshgrid(a,b,c);
data = f(X,Y,Z);
p = patch(isosurface(a,b,c,data,0));
isonormals(X,Y,Z,data,p)
cdata = smooth3(rand(size(data)),'box',7);
isocolors(X,Y,Z,cdata,p)
p.FaceColor = 'interp';
p.EdgeColor = 'none';
view(150,30)
daspect([1 1 1])
axis tight
camlight
lighting gouraud
But now I would like to plot in r, theta, z coordinate like a coin shape fill with this surface how can I do that ?

답변 (1개)

Divija Aleti
Divija Aleti 2021년 2월 5일
Hi Teerapong,
Have a look at the following links:
Additionally, you can download 3D Polar plot from file exchange, which may help:
Regards,
Divija

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by