summation of products of matrices
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Daniel Neubauer
on 4 Nov 2022
Edited: Daniel Neubauer
on 4 Nov 2022
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 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!