Effacer les filtres
Effacer les filtres

Find mod,median,total,average in Matrix

46 vues (au cours des 30 derniers jours)
Amir Hamzah UTeM
Amir Hamzah UTeM le 30 Mar 2011
hi, i have this matrix x=[80 90 70; 70 86 80; 90 80 82; 100 100 100] how to find mod,median,total and average for this matrix in row per row? thanks.

Réponse acceptée

Matt Fig
Matt Fig le 30 Mar 2011
x = [80 90 70; 70 86 80; 90 80 82; 100 100 100];
mode(x,2)
median(x,2)
sum(x,2)
mean(x,2)
Also, see the help for these functions.
help mean
help mode
help median
help sum

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics and Optimization dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by