Operation of specific elements of a matrix

1 view (last 30 days)
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?

Accepted Answer

madhan ravi
madhan ravi on 18 Dec 2018
mean(matrix(1:3:end,1))

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!