How can I multiply a row vector with each of two column vectors?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a row vector and two column vectors, and intend to perform their multiplication (element by element). The following is an example.
t = [1 2];
s = [(1:3)',(4:6)'];
The expected result:
1 4 2 8
2 5 4 10
3 6 6 12
0 件のコメント
採用された回答
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!