Operation of specific elements of a matrix

1 回表示 (過去 30 日間)
Alexis Villacis
Alexis Villacis 2018 年 12 月 18 日
回答済み: madhan ravi 2018 年 12 月 18 日
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?

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 18 日
mean(matrix(1:3:end,1))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by