How to visualize al the values inside the array and make split them into two sections?

1 回表示 (過去 30 日間)
Mariana
Mariana 2020 年 2 月 24 日
回答済み: darova 2020 年 2 月 24 日
I have and an array of 191x116x 5. I would like to visualize them in a way that all the value higher than 2 are with a certain color and the other ones in another. At the end I will have two sections.

採用された回答

darova
darova 2020 年 2 月 24 日
Just use logical indexing
ix = val > 2;
scatter3(x(ix),y(ix),z(ix),10,'r')
hold on
scatter3(x(~ix),y(~ix),z(~ix),10,'r')
hold off

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by