Consider a matrix with 1877958 rows and 7 columns. How can I subtract the first row, second row, third row… in column 1 from the first row, second row, third row, fourth row….. in column 7 and then divide the result by the first row, second row, third row, fourth row…. of column 3 until all 1877958 rows are covered. I want the result to be displayed as a 8th column.
MATLAB: Calculation within a matrix
matrix calculation
Related Question
- Selecting elements in matrix based on a vector
- Shift matrix from a specific row
- How to subtract row 1 of matrixA from row 2 of matrixB (matrices are of same size)
- Compare each row of a matrix
- Choose rows that the first column is larger than the second column
- HOW CAN I RE-EDIT MATRIX
- Create a matrix where the elements are the sums of the elements of an old matrix
Best Answer