summation of products of matrices
1 次查看(过去 30 天)
显示 更早的评论
I would like so have a fast solution to this problem
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1181258/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1180758/image.png)
0 个评论
回答(1 个)
Daniel Neubauer
2022-11-4
编辑:Daniel Neubauer
2022-11-4
take a look at
is that what you need?
p=3;
m=4;
i=5;
E=ones(p,p,i);
A=rand(p,m,i);
Sum=sum(pagemtimes(pagemtimes(A,'C',E,'N'),A),3)
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!