how to find the number of negative cells in matrix ?
9 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Voss
2022 年 11 月 12 日
A = randn(5) % 5-by-5 random matrix
nnz(A < 0) % number of elements of A that are < 0
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!