フィルターのクリア

3D cuboid elements display

2 ビュー (過去 30 日間)
ac_bm_mat
ac_bm_mat 2022 年 4 月 29 日
コメント済み: ac_bm_mat 2022 年 4 月 29 日
elem(8,8,8) = zeros;
for i=1:8
elem(i,i,i)=1
end
I want to plot 3D voxels or mesh or elements with different color for 1 and different color for 0. How to do that?

採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 29 日
I did not get around to gettting color working, but you can hardcode facecolor options into the patch() call.
  6 件のコメント
Walter Roberson
Walter Roberson 2022 年 4 月 29 日
Sorry, I am too busy the next few days to simplify that code for your case.
ac_bm_mat
ac_bm_mat 2022 年 4 月 29 日
It's okay. Whenever you are free, please try to simplify it. Thank you so much.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by