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!

 채택된 답변

James Tursa
James Tursa 2018년 4월 5일
편집: James Tursa 2018년 4월 5일

0 개 추천

T = reshape(B,size(B,1),[]) * A(:);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

질문:

Xin
2018년 4월 5일

편집:

2018년 4월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by