function y=avg2a(x)
  function y= mysum
      y= sum(x) ;
  end
  function y=mylen
      y= length(x) ;
  end
  y=mysum/mylen;

end
