In matlab it is easy to subtract number from column or row. I want to subtract column [n x 1] from a matrix [n x m]. Is it possible to doit without for loop? When I wrote it just with '-', there was dimension mismatch error. Thanks.
MATLAB: Subtract column from a matrix
MATLABmatrix
Related Question
- I want to create a matrix where each column is obtained by subtracting 1 from the previous column.
- Fast Element-Wise power
- From two to three dimensional matrix
- How i subtract a vector( 1*n-dim ) from columns of a matrix (n*n-dim) without uses for , end and orders likes these
- Define variable-length matrix row sub-ranges using start and stop indices
Best Answer