How to take mean of integers value?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
vimal kumar chawda
il 12 Giu 2021
Commentato: vimal kumar chawda
il 13 Giu 2021
I want to take mean of 5 column. How can I ? please find the attachment of the data.
2 Commenti
SALAH ALRABEEI
il 12 Giu 2021
Use mean(A,dir) where A is ur matrix and dir is the direction in which u r averaging. dir takes 1,or2,or3 etc values
Risposta accettata
Scott MacKenzie
il 12 Giu 2021
Modificato: Scott MacKenzie
il 12 Giu 2021
You need to use braces because your data are in a table:
mean(LSinclination{:,5})
If it's just the integer values you want the mean of (as suggested in your question title), then
intLogical = mod(LSinclination{:,5},1)==0
mean(LSinclination{intLogical,5});
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB 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!