%% Train Reliability Survival Model
% Load training data.

load('reliabilityData.mat')

% This data is a column vector of duration objects representing battery discharge times.
%
% Create a reliability survival model with default settings.

mdl = reliabilitySurvivalModel;

% Train the survival model using the training data.

fit(mdl,reliabilityData,"hours")

% Copyright 2012 The MathWorks, Inc.