Let's say I have a 3 matrices a, b, c with same size.
Code: Select all
a = [2, 5; 6, 9];
b = [3, 3; 8, 1];
c = [5, 5; 2, 7];
Code: Select all
max = [5, 5; 8, 9]
Code: Select all
a = [2, 5; 6, 9];
b = [3, 3; 8, 1];
c = [5, 5; 2, 7];
Code: Select all
max = [5, 5; 8, 9]
Code: Select all
maxMatrix = [max(a) max(b) max(c)];
Thanks for the codetheenggprojects wrote: ↑Thu Mar 09, 2017 8:25 amThat's not much difficult, use the below code:maxMatrix will be your matrix with maximum values of matrix a, b and c. Moreover, it will be a vector and if you want a 2 Dimensional matrix then add d too.Code: Select all
maxMatrix = [max(a) max(b) max(c)];