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: ROBOT_DEM.m
    path of file: ./repos/spm12/tests
    
    the code of the file until where you have to start completion: function E = ROBOT_DEM
% Tests routines in DEM GUI
%__________________________________________________________________________

% close and clear everything
%--------------------------------------------------------------------------
try
    cd(fullfile(spm('Dir'),'toolbox','DEM'))
catch
    cd('C:\spm\toolbox\DEM');
end
close all force

    
function E = ROBOT_DEM
% Tests routines in DEM GUI
%__________________________________________________________________________

% close and clear everything
%--------------------------------------------------------------------------
try
    cd(fullfile(spm('Dir'),'toolbox','DEM'))
catch
    cd('C:\spm\toolbox\DEM');
end
close all force
if exist('DEMO.ps','file')
    delete('DEMO.ps')
end
clc

% get scripts and functions
%--------------------------------------------------------------------------
P     = importdata('DEM_demo.m');
R     = {};
E     = {};
for i = 1:length(P)
    k = strfind(P{i},'handles,');
    if ~isempty(k)
        str          = P{i}(k + 10:end