Calculation the mean of a portion of a matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Moheb Amir Adel Kamel Rafla
2021 年 2 月 23 日
コメント済み: Moheb Amir Adel Kamel Rafla
2021 年 2 月 23 日
Hello!
I am having trouble finding out how can I calculate the mean of all the values in a 10x10 matrix (z) which do not lie along an edge of that same matrix (z)...
Thanks in advance!
0 件のコメント
採用された回答
Matt J
2021 年 2 月 23 日
編集済み: Matt J
2021 年 2 月 23 日
mean( z(2:end-1,2:end-1) ,'all')
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!