isosurface in cylindrical coordinates

조회 수: 30 (최근 30일)
Marcel Lacroix
Marcel Lacroix 2021년 2월 3일
댓글: Marcel Lacroix 2021년 2월 11일
Hi.
How can I plot a 3D surface of the function F(r, theta,z) with 'isosurface'? The cylindrical coordinates are r, theta and z (r is the radius, theta is the angle and z is the axial coordinate)?
A million thanks for your help

채택된 답변

darova
darova 2021년 2월 4일
편집: darova 2021년 2월 4일
Use isosurface normally
[f,v] = isosurface(R,THETA,Z,F,isovalue); % returns faces and vertices
Convert cylindrical coordinates into cartesian
x = v(:,1).*cos(v(:,2));
y = v(:,1).*sin(v(:,2));
z = v(:,3);
Use patch to plot
patch('Faces',f,'Vertices',[x y z])
  댓글 수: 1
Marcel Lacroix
Marcel Lacroix 2021년 2월 11일
It works. Many many thanks for your help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scalar Volume Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by