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: workspace_create.m
    path of file: ./repos/toolkit-legacy/workspace
    
    the code of the file until where you have to start completion: function workspace_create(varargin)
% workspace_create Initialize a new VOT workspace
%
% This function serves as a guided initialization of a workspace. It generates
% all the basic scripts to run your tracker on an experiment stack based on a
% series of questions.
%
% Input:
% - varargin[Tracker] (boolean, string): Generate a new tracker, if boolean, the
%   identifier of a tracker will be obtained interactively.
% - varargin[Stack] (string): Select a stack as an input.
%

tracker = [];
stack = [];

for j=1:2:length(varargin)
    switch lower(varargin{j})
        case 'tracker', tracker = varargin{j+1};
        case 'stack', stack = varargin{j+1};
        otherwise, error(['unrecognized argument ' varargin{j}]);
    end
end

script_directory = fileparts(mfilename('fullpath'));

addpath(fileparts(script_directory));
toolkit_path; % Setup the full toolkit path just in case

set_global_variable('toolkit_path', fileparts(script_directory));
set_global_variable('indent', 0);
set_global_variable('directory', pwd());

    
function workspace_create(varargin)
% workspace_create Initialize a new VOT workspace
%
% This function serves as a guided initialization of a workspace. It generates
% all the basic scripts to run your tracker on an experiment stack based on a
% series of questions.
%
% Input:
% - varargin[Tracker] (boolean, string): Generate a new tracker, if boolean, the
%   identifier of a tracker will be obtained interactively.
% - varargin[Stack] (string): Select a stack as an input.
%

tracker = [];
stack = [];

for j=1:2:length(varargin)
    switch lower(varargin{j})
        case 'tracker', tracker = varargin{j+1};
        case 'stack', stack = varargin{j+1};
        otherwise, error(['unrecognized argument ' varargin{j}]);
    end
end

script_directory = fileparts(mfilename('fullpath'));

addpath(fileparts(script_directory));
toolkit_path; % Setup the full toolkit path just in case

set_global_variable('toolkit_path', fileparts(script_directory));
set_global_variable('indent', 0);
set_global_variable('directory', pwd());

stacks = {};

files = dir(fullfile(fileparts(script_directory), 'stacks'));

for i = 1:length(files)
    if ~files(i).isdir && strxcmp(files(i).name, 'stack_', 'prefix') ...
            && strxcmp(files(i).name, '.m', 'suffix')
        stacks{end