Extract values from a matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
let say I have a matrix:
[ 3 2 4 ; 3 5 1]
I want to extract all the values that are greater than 3 and use all these extracted values to find the mean value.
How should I approach this?
0 Commenti
Risposta accettata
Guillaume
il 15 Nov 2019
mean(yourmatrix(yourmatrix >= 3)) %mean of all values greater than or equal to 3
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!