How do I map colour onto a mesh grid??

If I have a cubic meshgrid, made of 27 nodes, (so technically, 8 small cubes), how do I colour each of the small faces of the cube a single colour? Whenever I try using the surf command, with 'FaceColour','Flat', the whole meshgrid disappears.
It's almost meant to be like a 3D version of Tetris
Thanks!

 採用された回答

KSSV
KSSV 2017 年 4 月 24 日

0 投票

Have a look on this file exchange; it might be helpful.

2 件のコメント

kofort
kofort 2017 年 4 月 24 日
Hi, thanks but I have to use the meshgrid command!
KSSV
KSSV 2017 年 4 月 25 日
Attach the nodes data....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

質問済み:

2017 年 4 月 23 日

コメント済み:

2017 年 4 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by