Mean of multidimensional array
2 views (last 30 days)
Show older comments
Commented: Louise Wilson on 10 Dec 2021
I have a multidimensional array: 1000x72x4.
I would like to know the mean of all four sheets and so provide a single 1000x72 matrix.
mdar_mean=mean(mdar,[1 3]); %gives a 1000*1 array
James Tursa on 10 Dec 2021
Doesn't mean(mdar,3) do what you want?
More Answers (0)
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!