Compute average of each row in different matrices
Show older comments
Hi all,
I have 50 matrices and I want to compute average of each row in a matrix with the correspoding rows in the other matrices.
For instance I have two matrices
A=[3,4,5;2,6,7] B=[5,9,1;1,7,2]
and I want to obtain
average=[4,6.5,3;1.5,6.5,4.5]
Many thanks
Accepted Answer
More Answers (0)
Categories
Find more on NaNs 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!