Fast computation of 2D summation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Xin
am 5 Apr. 2018
Bearbeitet: James Tursa
am 5 Apr. 2018
Hello. I have two matrix, A and B and I want to compute the following 2D summation to get a 1D array T. Is it possible to use, e.g. convolution algorithm or other ones to acquire the solution? I try to use sum and it is a bit slow when A and B are large. Thanks a lot!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171863/image.png)
0 Kommentare
Akzeptierte Antwort
James Tursa
am 5 Apr. 2018
Bearbeitet: James Tursa
am 5 Apr. 2018
T = reshape(B,size(B,1),[]) * A(:);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!