function y=avg5(x)
  function z= mysum(x)
      z= sum(x) ;
      fprintf('You are in the nested function mysum\n');
  end
  function z=mylen(x)
      z= mysublen(x) ;
      fprintf('You are in the nested function mylen\n');
  end
  y=zvg5(x)/mylen(x);

end
  function z=mysublen(x)
      z= length(x) ;
      fprintf('You are in the subfunction function mylen\n');
  end

function z=zvg5(x)
  z=sum(x);
  fprintf('You are in the subfunction zvg5\n');
end
