Subtraction between a matrix and a column vector
古いコメントを表示
So I have a matrix of the size 23x15 and a column vector of size 23x1. I need to subtract element 1 of the colum vector from the 1st row of the matrix, element 2 of the column vector from 2nd row of the matrix, and so on. Any suggestions about how I can do it?
採用された回答
その他の回答 (1 件)
Torsten
2022 年 4 月 5 日
B = A - x
where A is your matrix and x is your vector.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!