%double for loop
%PC MA302
clc
clear
x=[1 2 -1 5 7 2 4];
y=[ 3 1 5 7];

m = length(x);
n = length(y);
A=zeros(m,n); %preallocate memory
for i_index =1:m
    for j_index =1:n
        A(i_index,j_index) = x(i_index)*y(j_index);
    end
end
disp(A);
