Calculation the mean of a portion of a matrix
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Moheb Amir Adel Kamel Rafla
el 23 de Feb. de 2021
Comentada: Moheb Amir Adel Kamel Rafla
el 23 de Feb. de 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 comentarios
Respuesta aceptada
Matt J
el 23 de Feb. de 2021
Editada: Matt J
el 23 de Feb. de 2021
mean( z(2:end-1,2:end-1) ,'all')
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!