My program looks like this, its supposed to take the input signal and output signal after convolution and graph them versus a variable.
function graphconv(~) L=200;K=50;n=0:L-1;z = double(rem(n,K) < K/2);h=@(n) 1/15 .* n>=0&&n<=14;y = conv(h,z);plot(n,z,'r',n,y,'b')
but i keep getting these errors and i can't seem to understand what they mean. I already tried googling it but to no avail.
ERROR CODES:
>> graphconvInput arguments to function include colon operator. To input the colon character,use ':' instead.Error in conv (line 43)c = conv2(a(:),b(:),shape);Error in graphconv (line 11)y = conv(h,z);
Best Answer