mean of elements of a matrix
3 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix A. I want to take an average of all elements of A. Please advise.
0 件のコメント
採用された回答
その他の回答 (2 件)
Image Analyst
2023 年 1 月 20 日
theAverage = mean(A, 'all')
% or
theAverage = mean2(A) % In the Image Processing Toolbox.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Mathematics and Optimization についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!