nDiscard+nPoints; % number of simulated points

u = fbaccala2001b_model2_variant( nPoints, nDiscard );

chLabels = {'x_1';'x_2';'x_3';'x_4';'x_5';'x_6'};

fs = 1;

%% Data pre-processing: detrending and normalization options
%

flgDetrend = 1;     % Detrending the data set
flgStandardize = 0; % No standardization
[nChannels,nSegLength] =size(u);
if nChannels > nSegLength
   u = u.'; 
   [nChannels,nSegLength]=size(u);
end
if flgDetrend
   for i=1:nChannels, u(i,:)=detrend(u(i,:)); end
   disp('Time series w