How do I find the dot product of 2 matrices without the same number of elements?
3 次查看(过去 30 天)
显示 更早的评论
I have the following vectors that I need to find the dot product for using the dot function. here is what I have so far;
A = [1 2 3]
B = [12 20 15 7]
dot(A, B)
10 个评论
Image Analyst
2018-10-24
I don't think 1 and 2 can be done. 3 can be done because for each food item there is a count and a price so you just do sum(count.*price).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!