How to get all combinations of PRODUCTS between two array elements?
18 ビュー (過去 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!