I'm trying to calculate convolution of two given vectors in MATLAB without using loop, and of course without the function
conv itself, but I can't remove the last loop I've used in the code below. Any hint would be appreciated.
function [ convolve ] = myconv( x,y) %This function calculate the convolution of the two inputs lx=length(x); ly=length(y); lt=lx+ly; x=[x zeros(1,ly)]; y=[y zeros(1,lx)]; convolve=zeros; for n=2:lt convolve(n-1)=sum(x(1:n-1).*fliplr(y(1:n-1))); end