%% Train Pairwise Similarity Model
% Load training data.

load('pairwiseTrainVectors.mat')

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

mdl = pairwiseSimilarityModel;

%
% Train the similarity model using the training data.

fit(mdl,pairwiseTrainVectors)

% Copyright 2012 The MathWorks, Inc.