Cannot use 'interp' for 'FaceColor' in patch
古いコメントを表示

I want to have smoother colormap but the program said:
"Warning: Error creating or updating Patch
Error in value of property FaceVertexCData
Number of colors must equal number of vertices ".
The data are given in attached file. Please kindly help me!
s=patch(X,Y,E_t,'FaceColor','interp');
1 件のコメント
darova
2021 年 3 月 21 日
Can you exaplain what your data represents?
s = load('plate.mat');
x = s.X;
y = s.Y;
z = s.E_t;
patch(x,y,z,'facecolor','interp')

Each vertex should have it's own color
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!