%% Train Residual Similarity Model
% Load training data.

load('residualTrainVectors.mat')

% The training data is a cell array of column vectors. Each column vector is a degradation feature profile for a component.
%
% Create a residual similarity model with default settings.

mdl = residualSimilarityModel;

%
% Train the similarity model using the training data.

fit(mdl,residualTrainVectors)

% Copyright 2012 The MathWorks, Inc.