Calculation the mean of a portion of a matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Moheb Amir Adel Kamel Rafla
le 23 Fév 2021
Commenté : Moheb Amir Adel Kamel Rafla
le 23 Fév 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 commentaires
Réponse acceptée
Matt J
le 23 Fév 2021
Modifié(e) : Matt J
le 23 Fév 2021
mean( z(2:end-1,2:end-1) ,'all')
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!