Calculation the mean of a portion of a matrix
조회 수: 3 (최근 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!