Borrar filtros
Borrar filtros

Find mod,median,total,average in Matrix

46 visualizaciones (últimos 30 días)
Amir Hamzah UTeM
Amir Hamzah UTeM el 30 de Mzo. de 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.

Respuesta aceptada

Matt Fig
Matt Fig el 30 de Mzo. de 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

Más respuestas (0)

Categorías

Más información sobre Mathematics and Optimization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by