  function [] = initializeSimscapeConfiguration(args)

  arguments
    args.gravity logical {mustBeNumericOrLogical} = true
  end

  conf_simscape = struct();

  if args.gravity
    conf_simscape.type = 1;
  else
    conf_simscape.type = 2;
  end

if exist('./mat', 'dir')
    if exist('./mat/conf_simscape.mat', 'file')
        save('mat/conf_simscape.mat', 'conf_simscape', '-append');
    else
        save('mat/conf_simscape.mat', 'conf_simscape');
    end
elseif exist('./matlab', 'dir')
    if exist('./matlab/mat/conf_simscape.mat', 'file')
        save('matlab/mat/conf_simscape.mat', 'conf_simscape', '-append');
    else
        save('matlab/mat/conf_simscape.mat', 'conf_simscape');
    end
end
