function varargout = helperImportModalData()
% This function helperImportModalData is only in support of
% ModalAnalysisExample. It may be removed in a future release.

%   Copyright 2016 The MathWorks, Inc.

if nargout == 8
  load modaldata;
  rng('default');

  % Add noise to the output signals.
  XhammerMISO1 = XhammerMISO1 + randn(size(YhammerMISO1))/1250; %#ok<NODEF>
  XhammerMISO2 = XhammerMISO2 + randn(size(YhammerMISO2))/1250; %#ok<NODEF>
  YhammerMISO1 = YhammerMISO1 + randn(size(YhammerMISO1))/1e11; %#ok<NODEF>
  YhammerMISO2 = YhammerMISO2 + randn(size(YhammerMISO2))/1e11; %#ok<NODEF>

  varargout{1} = (0:size(XhammerMISO1,1)-1)/fs;
  varargout{2} = fs;
  varargout{3} = 1e2*XhammerMISO1;
  varargout{4} = 1e2*XhammerMISO2;
  varargout{5} = 1e2*YhammerMISO1;
  varargout{6} = 1e2*YhammerMISO2;
  varargout{7} = modalParams.hammerMISO.f0;
  varargout{8} = modalParams.hammerMISO.H0_d(:,1,1);
else
  load modalTurbine.mat;
  FRF = permute(FRF,[1 3 2]); %#ok<NODEF>
  varargout{1} = FRF;
  varargout{2} = f;
  varargout{3} = fs;
end

end