Calculation the mean of a portion of a matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Moheb Amir Adel Kamel Rafla
am 23 Feb. 2021
Kommentiert: Moheb Amir Adel Kamel Rafla
am 23 Feb. 2021
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 Kommentare
Akzeptierte Antwort
Matt J
am 23 Feb. 2021
Bearbeitet: Matt J
am 23 Feb. 2021
mean( z(2:end-1,2:end-1) ,'all')
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!