using logical mask in array
13 ビュー (過去 30 日間)
古いコメントを表示
hello! i have this array: C=[1 1 1 2 3 4 5 5 5 5 6 6 6 6 ] and i wana to get the index of array where C=5, i can use res=find(C==5), but i went to use logical masks to improve performance in my code, so can any one tel me how i use logical mask ?? ^^ thanks
0 件のコメント
回答 (1 件)
Image Analyst
2017 年 8 月 14 日
Mask = C==5;
5 件のコメント
Image Analyst
2017 年 8 月 15 日
khaled's "Answer" moved here:
Yes, thank very much you for the illustration.
Image Analyst
2017 年 8 月 15 日
So, if we're done then could you "Accept" the answer? Otherwise explain what you still need help on.
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!