Hello guys,
I made a piece of code that run through all the elements of each row and calculate the convolution. my problem is how can I store the previous answers without overwriting them
A=[1,2;3,4];v=[1 -2 1];y=[];for i=1:length(A)x=A(i,:);for c=1:2y=conv(v,x);endhold onend
The result should be a matrix exp
result1 0 -3 23 -2 -5 4instead I only get the last row3 -2 -5 4
Best Answer