Colormap data for elements rather than nodes

1 回表示 (過去 30 日間)
Pelajar UM
Pelajar UM 2022 年 2 月 28 日
編集済み: Pelajar UM 2022 年 3 月 1 日
I have a 3D mesh with a temperature field that is defined for each element. It seems that the built-in "colormapdata" only accepts values that correspond to node IDs. Are there any methods to map data on elements rather than nodes?
nodes = csvread( "nodes.csv" ); %113872x3 double
elements = csvread( "elms.csv" ); %60488x10 double
temperature = csvread ("temp.csv"); %60488x1 double
pdemesh(nodes',elements','ColorMapData', temperature,'FaceAlpha', 1)
Error:
Error using pdeplot3D
Length of colormapdata vector must equal number of nodes.

回答 (0 件)

カテゴリ

Help Center および File ExchangeBoundary Conditions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by