matrix multiplication with different sizes
2 次查看(过去 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!