How to get all combinations of PRODUCTS between two array elements?
8 次查看(过去 30 天)
显示 更早的评论
采纳的回答
更多回答(1 个)
Walter Roberson
2022-6-9
A(:).*B(:).'
If you can guarantee that both are row vectors then either
A.'. * B
or
A .* B.'
The result will be a 2d array, length() of one by length() of the other.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!