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: xASL_init_PrintCheckSettings.m
    path of file: ./repos/ExploreASL/Functions/Initialization
    
    the code of the file until where you have to start completion: function x = xASL_init_PrintCheckSettings(x)
%xASL_init_PrintCheckSettings Check whether pre-defined settings existed in dataPar.json
%
% FORMAT: x = xASL_init_PrintCheckSettings(x)
%
% INPUT:
%   x       - ExploreASL x structure (STRUCT, REQUIRED)
%
% OUTPUT:
%   x       - ExploreASL x structure (STRUCT)
%
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% DESCRIPTION: Check whether pre-defined settings existed in `dataPar.json`.
%
% Prints these on the screen as the start of the pipeline.
% Runs following steps:
%
% 1. Set default settings if not defined
% 2. Print data/study specific settings
% 3. Print warnings
%
% EXAMPLE:     This is part of the initialization workflow. Check out the usage there.
%

    
function x = xASL_init_PrintCheckSettings(x)
%xASL_init_PrintCheckSettings Check whether pre-defined settings existed in dataPar.json
%
% FORMAT: x = xASL_init_PrintCheckSettings(x)
%
% INPUT:
%   x       - ExploreASL x structure (STRUCT, REQUIRED)
%
% OUTPUT:
%   x       - ExploreASL x structure (STRUCT)
%
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% DESCRIPTION: Check whether pre-defined settings existed in `dataPar.json`.
%
% Prints these on the screen as the start of the pipeline.
% Runs following steps:
%
% 1. Set default settings if not defined
% 2. Print data/study specific settings
% 3. Print warnings
%
% EXAMPLE:     This is part of the initialization workflow. Check out the usage there.
%
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% REFERENCES:  n/a
%
% Copyright 2015-2021 ExploreASL
    

    %% -----------------------------------------------------------------------
    %% 1) Set default settings if not defined
    if ~isfield(x.settings,'Quality') || (x.settings.Quality~=0 && x.settings.Quality~=1)
        x.settings.Quality = 1;
        fprintf('%s\n', 'Default Quality=1 used (optimal quality)');
    end