mean of elements of a matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
alpedhuez
il 31 Mar 2018
Risposto: Image Analyst
il 20 Gen 2023
I have a matrix A. I want to take an average of all elements of A. Please advise.
0 Commenti
Risposta accettata
Più risposte (2)
Image Analyst
il 20 Gen 2023
theAverage = mean(A, 'all')
% or
theAverage = mean2(A) % In the Image Processing Toolbox.
0 Commenti
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!