How to use mean2 and skip some rows?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello! I have a matrix with dates from 1920's to 2020's. I want to get the means of my column #11. I used mean2 and it worked perfect but I do not want to include the means corresponding to years 1926 to 1929. How can I skip this dates and use mean2 for the entire matrix column?
Thank you!
0 件のコメント
採用された回答
DGM
2021 年 11 月 30 日
What's wrong with just
mymean = mean(yearly_data_matrix(5:end,11));
since you're extracting a vector, I don't see the need for mean2()
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!