function [x,y] = diavasma2(dim1,dim2) x = zeros(dim1,dim2); y = 0; for i = 1:dim1 for j = 1:dim2 if i == 2*j x(i,j) = i + j; y = y + 1; end end end end

function [x,y] = diavasma2(dim1,dim2) x = zeros(dim1,dim2); y = 0; for i = 1:dim1 for j = 1:dim2 if i == 2*j x(i,j) = i + j; y = y + 1; end end end end

Posted in Uncategorized