%% script: load input data
%
% THIS IS NO USER SCRIPT/FUNCTION.

%% Load input data
% The database is located in the standard folder ./database and contains
%   mFiles, which are als the default expected type. However, the cases are
%   identified by an internal variable 'name'.
% Dependent on caseName='init' and caseName='' the behavior is slightly
%   different. If generateData was called with output variable, then the
%   possible cases should be returned as struct. If it is, however, called
%   without an output variable, we dont want to display a struct. To
%   enforce obtainData to print the information on screen, we use the 
%   'prompt' option.
inData = obtainData(caseName, ...
    'databaseRoot', databaseRoot, ...
    'prompt', nargout==0, ...
    inputDatabase{:});