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: display.m
    path of file: ./repos/bspm/thirdparty/spm12/toolbox/marsbar-0.44/@mars_space
    
    the code of the file until where you have to start completion: function display(obj)
% display method for mars_space object
%
% $Id$
  
X = struct(obj);
src = ['[mars_space object]'];
if isequal(get(0,'FormatSpacing'),'compact')
  disp([inputname(1) ' =']);
  disp(src);
  disp(X)
else
  disp(' ')

    
function display(obj)
% display method for mars_space object
%
% $Id$
  
X = struct(obj);
src = ['[mars_space object]'];
if isequal(get(0,'FormatSpacing'),'compact')
  disp([inputname(1) ' =']);
  disp(src);
  disp(X)
else
  disp(' ')
  disp([inputname(1) ' =']);
  disp(' ');
  disp(src);
  disp(' ');
  disp(X)
end