Borrar filtros
Borrar filtros

Operation of specific elements of a matrix

1 visualización (últimos 30 días)
Alexis Villacis
Alexis Villacis el 18 de Dic. de 2018
Respondida: madhan ravi el 18 de Dic. de 2018
I have a matrix of dimensions 3000x3.
I need to compute statistics for the elements (1,1),(4,1),(7,1), (10,1),...,(3000,1)
how can I code this statistic i.e mean? It is basically the mean of the elements of the first colum, which are in rows 1,4,7,10...3000 i.e i+3?

Respuesta aceptada

madhan ravi
madhan ravi el 18 de Dic. de 2018
mean(matrix(1:3:end,1))

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by