colormapdata for trisurf?

4 ビュー (過去 30 日間)
Pelajar UM
Pelajar UM 2021 年 11 月 8 日
回答済み: Pelajar UM 2021 年 11 月 9 日
Is there a function like colormapdata when plotting surfaces?
I'm not referring to colormap which has to have 3 columns. Colormapdata has only 1 value per node (Nx3 array). For example, for each point on the surface, I have 1 temperature value.

採用された回答

Pelajar UM
Pelajar UM 2021 年 11 月 9 日
For anyone else wondering, there's a very simple way to do this:
F= faces and P=points from triangulation. Field is NX1 array. P is Nx3 array.
trisurf(F,P(:,1),P(:,2),P(:,3),Field)
colorbar

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTriangulation Representation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by