function [s,ax,an,aver] =myvector_2(a)
na=length(a);
s=0.;
for i=1:na
s=s+a(i);
end

end

