zad3. a = [3 1 1]; b = [1 5 1]; conv(a,b) c = [2 5 8 0]; d = [4 1 2 7]; conv(c,d) e = [0 0 2 1 4 0 0]; f = [0 0 1 5 2 0 0]; conv(e,f) g = [1 9 2 2 1]; h = [0 0 2 6]; conv(g,h) x = [-1 1 4 1]; q = [1 -3 3]; conv(x,q) y = [9 9 2 2]; z = [0 5 1 0]; conv(y,z) zad4. a = [0 0 2 1 4 0 0]; b = [0 0 1 5 2 0 0]; rozm=size(a,2)+size(b,2)-1; c = zeros(1,rozm); for i=1:size(a,2) for j=1:size(b,2) c(i+j-1)=c(i+j-1)+a(i)*b(j); end end c zad7. zad8. zad9.