I have m*n matrix. I want keep only those rows whose atleast one element is greater than any specific value such as 1.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have m*n matrix. I want keep only those rows whose atleast one element is greater than any specific value such as 1.
0 Commenti
Risposta accettata
Mathieu NOE
il 14 Ott 2021
hello
try this
m = 3;
n = 5;
A= 1.15*rand(m,n);
threshold = 1;
a = A>threshold;
rows = find(any(a, 2));
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!