I have a 84×7 matrices. On the entire column 2 and 4, they need to be subtracted from higher number – lower and loop through the whole 84 rows and put them into a new 84×1 vector. How can this be done? let 4×4 matrix a = [x 3 2 y; x 4 1 y; x 1 6 y; x 2 7 y; x 5 1 y;
b= [3-2 4-1 6-1 7-2 5-1] b= [1 3 5 5 4 ]
Best Answer