필터 지우기
필터 지우기

3d surface plot by having 3 uncorrelated vectors

조회 수: 4 (최근 30일)
Gianmarco Azzolin
Gianmarco Azzolin 2021년 1월 29일
답변: KSSV 2021년 1월 29일
Hi everyone,
I'm trying to plot a 3D surface in Matlab, having three different vectors x,y,z. All the three have dimension 1601x1 and they are not correlated by any mathematical formula, they are only coordinates of some points that have to be plotted. I would like to plot a 3d homogeneous surface (not point by point) with different colours indicating the different heights (maybe yellow where z is higher and blue where z is lower). I don't want a discrete surface (actually I've already tried to use plot3 but it seems to be a point surface or a line one, I want an homogenous thing).
Could you help me please?
Thank you in advance,
Gianmarco
  댓글 수: 3
Gianmarco Azzolin
Gianmarco Azzolin 2021년 1월 29일
These points are part of a circular membrane, their coordinates are extrapolated by the numerical model on Patran software and follow a counter-clock path starting from the x axis. I attach the screen of the numerical model and its nodes. The fact is that when this membrane is deformed, by using FBG and modal analysis I retrieve the displacements in all points, storing them in three different vectors x,y,z. I would like to have a visual image of the deformed membrane, knowing the displacements of the nodes which it is composed by.
KSSV
KSSV 2021년 1월 29일
Attach your data.

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

답변 (1개)

KSSV
KSSV 2021년 1월 29일
Let (x,y,z) be your three column arrays.
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
figure
trisurf(tri,x,y,z)

카테고리

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