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?

2 ビュー (過去 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 件のコメント
Sachin Shinde
Sachin Shinde 2020 年 7 月 3 日
Thanks a lot. I will check that.
Sachin Shinde
Sachin Shinde 2020 年 7 月 9 日
Hi
I have the attached data.
I don't know how to prceed with 'griddata'.
could you please take a look?
Thanks.

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

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by