| MATLAB Function Reference | ![]() |
Syntax
trisurf(Tri,X,Y,Z)
trisurf(Tri,X,Y,Z,C)
trisurf(...'PropertyName',PropertyValue...)
h = trisurf(...)
Description
trisurf(Tri,X,Y,Z) 以定義在 m-by-3 的表面矩陣 Tri 來描繪一個曲面。Tri 的每一列都構成了一個由矩陣X 、 Y 與 Z 所產生的三角塊。
trisurf(Tri,X,Y,Z,C)
與 surf 函式一樣,可以用矩陣 C 指定呈現的顏色。 MATLAB 會對這些資料產生一個線性轉換,以取得顏色的對應。
trisurf(...' 指定額外的 patch 屬性名稱以及屬性值,用來修正由函式建立的繪圖物件。PropertyName',PropertyValue...)
h = trisurf(...)
傳回 patch 的控制。
Example
x = rand(1,50); y = rand(1,50); z = peaks(6*x-3,6*x-3); tri = delaunay(x,y); trisurf(tri,x,y,z)
See Also
patch, surf, trimesh, delaunay
| trimesh | triu | ![]() |