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: setPapertoFigPos.m
    path of file: ./repos/bspm/thirdparty/rsatoolbox/Engines
    
    the code of the file until where you have to start completion: function F = setPapertoFigPos(F)
% This function change's the paper size of a figure to match
% the space the figure takes up on the page. This is mainly
% since it allows you to set the 'position' argument to the
% desired size and then have the resulting ps/eps/pdfs come out
% without a bunch of whitespace.
%__________________________________________________________________________
% Copyright (C) 2010 Medical Research Council

    
function F = setPapertoFigPos(F)
% This function change's the paper size of a figure to match
% the space the figure takes up on the page. This is mainly
% since it allows you to set the 'position' argument to the
% desired size and then have the resulting ps/eps/pdfs come out
% without a bunch of whitespace.
%__________________________________________________________________________
% Copyright (C) 2010 Medical Research Council


if nargin < 1
	F = gcf;
end