You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: removepoints.m
    path of file: ./repos/mcmcstat
    
    the code of the file until where you have to start completion: function y=removepoints(h)
%REMOVEPOINTS Remove points from current axis
% removepoints(h) removes points from axis h
% use removepoits(gcf) to remove points from all axes of the current figure

    
function y=removepoints(h)
%REMOVEPOINTS Remove points from current axis
% removepoints(h) removes points from axis h
% use removepoits(gcf) to remove points from all axes of the current figure

% Marko Laine <marko.laine@fmi.fi>
% $Revision: 1.4 $  $Date: 2012/09/27 11:47:39 $

if nargin<1
  h = gca;
end