%% Create GARCH Model Using Longhand Syntax
% Create a garch model using name-value pair arguments.
% Specify a GARCH(1,1) model. By default, the conditional mean model offset is zero. Specify that the offset is NaN.

Mdl = garch('GARCHLags',1,'ARCHLags',1,'Offset',NaN)

% Mdl is a garch model object. The software sets all parameters (the properties of the model object) to NaN, except P, Q, and Distribution.
% Since Mdl contains NaN values, Mdl is only appropriate for estimation only. Pass Mdl and time-series data to estimate.
% Copyright 2015 The MathWorks, Inc.