Filter löschen
Filter löschen

Operation of specific elements of a matrix

1 Ansicht (letzte 30 Tage)
Alexis Villacis
Alexis Villacis am 18 Dez. 2018
Beantwortet: madhan ravi am 18 Dez. 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?

Akzeptierte Antwort

madhan ravi
madhan ravi am 18 Dez. 2018
mean(matrix(1:3:end,1))

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by