%% Normalize Sequence Data
% This example shows how to normalize sequence data for LSTM networks.
%% Load Data
% Load the Japanese Vowels data.

[XTrain,YTrain] = japaneseVowelsTrainData;

%
%% Normalize the Data

mu = mean([XTrain{:}],2);
sigma = std([XTrain{:}],0,2);
XTrain = cellfun(@(X) (X-mu)./sigma,XTrain,'UniformOutput',false);

%
% Copyright 2018 The MathWorks, Inc.