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: arLoadOnlyMultistartResults.m
    path of file: ./repos/d2d/arFramework3/Advanced
    
    the code of the file until where you have to start completion: % arLoadOnlyMultistartResults(workspace_name)
%
% Loads results of a multistart (e.g. LHS) fitting sequence
%
% Usage:
%       arLoadOnlyMultistartResults( workspace_name )
%
% W
    
function arLoadOnlyMultistartResults(workspace_name)
if ~exist('Results','dir')
    error('No results folder exist. arLoad can only be executed in a D2D working directory.')
end
if exist('arCheck','file')==0
    arInit;
end
arCheck;

global ar


if(~exist('workspace_name', 'var') || isempty(workspace_name))
    [~, workspace_name] = fileChooser('./Results', 1, true);
elseif(isnumeric(workspace_name)) % workspace_name is the file-number
    [~, ~, file_list] = fileChooser('./Results', 1, -1);    
    workspace_name = file_list{workspace_name};
elseif(ischar(workspace_name)) 
    [~,workspace_name]=fileparts(workspace_name);    % remove path
end