Row-wise matrix convolution.
0001 function C=conv2along1(A,B) 0002 % Row-wise matrix convolution. 0003 0004 % This file is part of WaveComBox: www.wavecombox.com and is distributed under the terms of the MIT license. See accompanying LICENSE file. 0005 % Original author: François Rottenberg, May 4, 2018. 0006 % Contributors: 0007 % Change log: 0008 0009 0010 if size(A,1)~=size(B,1), 0011 fprintf('Wrong Matrix sizes') 0012 return 0013 end; 0014 C=zeros(size(A,1),size(A,2)+size(B,2)-1); 0015 for i=1:size(A,1), 0016 C(i,:)=conv(A(i,:),B(i,:)); 0017 end; 0018 return 0019