Calculation the mean of a portion of a matrix
1 次查看(过去 30 天)
显示 更早的评论
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!