Searching matrix which contain specific value?
Mostra commenti meno recenti
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 Commento
Bishwam Pattnaik
il 17 Ago 2019
Risposte (1)
madhan ravi
il 17 Ago 2019
Modificato: madhan ravi
il 17 Ago 2019
any(matrix(:)==value) % 1 means true ,false otherwise
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!