how to divide two matrix
120 次查看(过去 30 天)
显示 更早的评论
hi everyone I have 2 matrix like
a=[10 12 15;15 16 18;14 18 19;15 19 25;23 45 75]
b=[2 4 5;1 2 2;4 8 6;1 4 7;5 1 2]
how can I divide each elements of matrix "a" by corresponding value in matrix "b" to have
c=[5 3 3;15 8 9;........]
? the original matrix are big. Thanks
0 个评论
采纳的回答
the cyclist
2017-2-3
编辑:the cyclist
2017-2-3
c = a./b;
This is a very basic MATLAB question. I suggest you google "matlab tutorial" and look through some of the excellent (and free) online material that is available.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!