필터 지우기
필터 지우기

How to cut surface plot to 2d image ?

조회 수: 1 (최근 30일)
Teerapong Poltue
Teerapong Poltue 2021년 1월 6일
답변: Pranav Verma 2021년 1월 12일
I've got my 3D plot from this code
syms x y z
f = @(x,y,z) cos(x) + cos(y) + cos(z);
interval = [-pi:0.1:pi];
a= interval ;
b= interval;
c= interval;
[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
And I would like to cut to have a YZ plane cut at Y = 0 to get 2d image for the next step processing (find the size of the pore from this 3d) how can I do that.

답변 (1개)

Pranav Verma
Pranav Verma 2021년 1월 12일
Hi Teerapong,
You can try the contour function in MATLAB for this purpose.
Thanks

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by