I have 2 matrices,
a= [1 2 3; 4 5 6; 7 8 9; 10 11 12];
and
b= [13 14 15; 16 17 18; 19 20 21; 22 23 24];
How can I make the average of these 2 matrices and store the values in another matrix "C" on Matlab?
The value of C will be,
c= [(1+13)/2 (2+14)/2 (3+15)/2; (4+16)/2 (5+17)/2 (6+18)/2;...]
Thanks.
You would do:
This will give you the desired result.