matrix multiplication with different sizes
3 ビュー (過去 30 日間)
古いコメントを表示
i have two arrays of sizes n and n*k i want to multiply the the first element of first matrix with first k elements and so on.
2 件のコメント
Dyuman Joshi
2022 年 7 月 11 日
編集済み: Dyuman Joshi
2022 年 7 月 11 日
"so on"
How exactly do you want to proceed? Multipy with the next k elements or the second element from first matrix? Give us an example with the following (n=4, k=5) -
y=spiral(4) %4*4 matrix
z=reshape(1:4*5,4,5) %4*5 matrix
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!