function m = max_new( a ) m = a(1); for i=2:size(a,2) if a(i) > m m = a(i); end end