using logical mask in array

조회 수: 12 (최근 30일)
khaled nouri
khaled nouri 2017년 8월 14일
댓글: Image Analyst 2017년 8월 15일
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

답변 (1개)

Image Analyst
Image Analyst 2017년 8월 14일
  댓글 수: 5
Image Analyst
Image Analyst 2017년 8월 15일
khaled's "Answer" moved here:
Yes, thank very much you for the illustration.
Image Analyst
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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by