division of two matrices
2 次查看(过去 30 天)
显示 更早的评论
I have a nx2 matrix
A = [1 1;
2 1;
3 -1;
0 1];
and I have a nx1 matrix
B = [1;
2;
3;
4];
I want the n-th row of A to be divided by the n-th row of B. How do I do that?
I only know how to say: A(1,:)./B(1,:). But I want don't want to do this manually. Thanks
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!