I have surface data stored in faces and vertices. How to extract data in a slice (or 2D plane) from this Faces and vertices data?

3 次查看(过去 30 天)
I have surface data stored in faces and vertices. How to extract data in a slice (or 2D plane) from this Faces and vertices data?

回答(1 个)

darova
darova 2020-7-1
Use interp2
[x,y,z] = peaks(20);
x1 = linspace(min(x(:)),max(x(:)),20);
y1 = sin(x1);
z1 = interp2(x,y,z,x1,y1);
surf(x,y,z,'facecolor','none')
line(x1,y1,z1,'linew',2)
axis vis3d
  10 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by