To average two rows of a matrix in Matlab:
main.m264 chars12 lines
In this example, we select the second and third rows from the matrix
and compute their average. We then replace the second and third rows with the averaged row. The resulting matrix
will have the same number of rows, but the selected rows will be replaced with the averaged row.
gistlibby LogSnag