Searching matrix which contain specific value?
Mostrar comentarios más antiguos
Hi, i got two matrices of same size? lets say i am searching for a particular value? how can i use a counter loop to Return 1 if that matrix contain that value and return 0 if that matrix doesn't not contain the value?
1 comentario
Bishwam Pattnaik
el 17 de Ag. de 2019
Respuestas (1)
madhan ravi
el 17 de Ag. de 2019
Editada: madhan ravi
el 17 de Ag. de 2019
any(matrix(:)==value) % 1 means true ,false otherwise
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!