I want to find sum of numbers appearing in right triangular part from bottom right corner to top left corner in a 2-D matrix like
o = [1 2 3 4;5 6 7 8]f = [1,2,3,4; 5,6,7,8; 2,3,4,5]
sum of o = 1+5+6+7+8 = 27
sum of f = 1+5+6+2+3+4+5 = 26
o = [1 2 3 4;5 6 7 8]f = [1,2,3,4; 5,6,7,8; 2,3,4,5]
Best Answer