using logical mask in array

33 visualizaciones (últimos 30 días)
khaled nouri
khaled nouri el 14 de Ag. de 2017
Comentada: Image Analyst el 15 de Ag. de 2017
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

Respuestas (1)

Image Analyst
Image Analyst el 14 de Ag. de 2017
Mask = C==5;
  5 comentarios
Image Analyst
Image Analyst el 15 de Ag. de 2017
khaled's "Answer" moved here:
Yes, thank very much you for the illustration.
Image Analyst
Image Analyst el 15 de Ag. de 2017
So, if we're done then could you "Accept" the answer? Otherwise explain what you still need help on.

Iniciar sesión para comentar.

Categorías

Más información sobre Author Block Masks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by