clear, clc, close all

number = [1,2,3,4,5,6,7,8,9,10];
number2 = [1,3,5,7,9,2,4,6,8,10];

j = 1;
for i = number
    if mod(number(i),2) == 0
        evenmat(j) = number(i);
        j = j+1;
    end
end

x = find(mod(number2,2) == 0)
evenmat2 = number2(x)

%Matrix to be filled only in its diagnol matrix
%given a mtrix
A = zeros(9,12);

[width,length] = size(A)
for i = 1:width
    for j = 1:length
        if i == j
        B(i,j) = 1
        end
    end
end

