mean of elements of a matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
alpedhuez
le 31 Mar 2018
Réponse apportée : Image Analyst
le 20 Jan 2023
I have a matrix A. I want to take an average of all elements of A. Please advise.
0 commentaires
Réponse acceptée
Plus de réponses (2)
Image Analyst
le 20 Jan 2023
theAverage = mean(A, 'all')
% or
theAverage = mean2(A) % In the Image Processing Toolbox.
0 commentaires
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!