Searching matrix which contain specific value?
Ältere Kommentare anzeigen
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 Kommentar
Bishwam Pattnaik
am 17 Aug. 2019
Antworten (1)
madhan ravi
am 17 Aug. 2019
Bearbeitet: madhan ravi
am 17 Aug. 2019
any(matrix(:)==value) % 1 means true ,false otherwise
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!