Azzera filtri
Azzera filtri

Find mod,median,total,average in Matrix

46 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Matt Fig
Matt Fig il 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

Più risposte (0)

Categorie

Scopri di più su Mathematics and Optimization 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!

Translated by