how to multiply matrix vectors with one column?
2 ビュー (過去 30 日間)
古いコメントを表示
if i have matrix M = [1 0 1 0; 1 0 0 1;1 1 1 0;1 1 1 1; ...] and i want to multiply each row with one cloumn B=[1 0 0 1] how to do this?
0 件のコメント
採用された回答
Mohammad Abouali
2014 年 11 月 9 日
M*B'
3 件のコメント
Mohammad Abouali
2014 年 11 月 9 日
編集済み: Mohammad Abouali
2014 年 11 月 9 日
B' is 4x1 M is 4x4 then C=M*B' would be also 4x1. then you can not compute C*M since C is 4x1 and M is 4x4.
But you can compute C1=M*C and then C2=M*C1. Exactly as we are writing this.
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!