%% Ameer Alkam

%% 1120217

%% main functions
n1 = -10:1:20;
x1 = n1;

n2 = 0:1:30;
x2 = cos(0.1*pi.*n2);

[y1, ny1] = conv_m(x1,n1, x2,n2); % X1 convolv X2
[y2, ny2] = conv_m(x2,n2, x1,n1); % X2 convolv X1

figure(1);
subplot(2,1,1), stem(ny1, y1);
subplot(2,1,2), stem(ny2, y2);