function setupWorkDir(workDir)
    % Create the directory if it doesn't exist.
    if ~exampleUtils.folderExists(workDir)
        mkdir(workDir)
    end
end

