function [a,b] = math_aa1(A) while sum(sum(A)) < 100 fprintf (' to athroisma ton stoixeion tou A einai %d \n' , sum(sum(A))) A = input('dose neo pinaka A: ') end fprintf(' perases ton elegxo me neo athroisma pinaka %d' , sum(sum(A))) [m,n] = size(A) a = zeros(m,n); b = zeros(m,n); for i = 1:m if mod(i,2) == 0 a(i,:) = A(i,:); else b(i,:) = A(i,:); end end end