MATLAB Answers

Fast computation of 2D summation

조회 수: 8(최근 30일)
Xin
Xin 5 Apr 2018
Edited: James Tursa 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!

  댓글 수: 0

로그인 to comment.

채택된 답변

James Tursa
James Tursa 5 Apr 2018
James Tursa 님이 편집함. 5 Apr 2018
T = reshape(B,size(B,1),[]) * A(:);

  댓글 수: 0

로그인 to comment.

More Answers (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by