mean of elements of a matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 31 Mär. 2018
Beantwortet: Image Analyst
am 20 Jan. 2023
I have a matrix A. I want to take an average of all elements of A. Please advise.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Image Analyst
am 20 Jan. 2023
theAverage = mean(A, 'all')
% or
theAverage = mean2(A) % In the Image Processing Toolbox.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!