cadd.html" class="code" title="function x=nt_vecadd(x,v)">nt_vecadd</a>(<a href="nt_vecmult.html" class="code" title="function x=nt_vecmult(x,v)">nt_vecmult</a>(ones(N,nshifts),shifts),(1:N)');
0028 [m,n,o]=size(x);
0029 z=zeros(N,n*nshifts,o);
0030 
0031 <span class="keyword">if</span> ~isempty(amplitudes)
0032     amplitudes=amplitudes(:)';
0033     <span class="keyword">if</span> numel(amplitudes)~=numel(shifts); error(<span class="string">'amplitudes and shifts should have same numel'</span>); <span cla