I have a 296×6 matrix called impactScore, and the maximum value (max1, max2 . . . max6) from each column(call them col1,col2 . . . col6).
For Row 1, i want to find
(row 1 col 2) – max1)^2
(row 1 col 2 – max2)^2
Repeat this for all 6 columns and sum this value
Repear this calculation for each row
Essentially
where i represents each row and j represents each column.
Best Answer