how to multiply matrix vectors with one column?
1 次查看(过去 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!