Searching matrix which contain specific value?
古いコメントを表示
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 件)
madhan ravi
2019 年 8 月 17 日
編集済み: madhan ravi
2019 年 8 月 17 日
any(matrix(:)==value) % 1 means true ,false otherwise
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!