How can i multiply each value from a row to each value of another row.
4 ビュー (過去 30 日間)
古いコメントを表示
Example: A = [1 2 3]
B = [ 4 5 6]
Answer:[ 4 10 18]
0 件のコメント
採用された回答
Ameer Hamza
2020 年 10 月 31 日
編集済み: Ameer Hamza
2020 年 10 月 31 日
Read about element-wise operator in MATLAB: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html
A = [1 2 3]
B = [4 5 6]
Answer = A.*B
Result
>> Answer
Answer =
4 10 18
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!