%% Create Partially Specified Model
% Create the AR(1) model represented by this equation:
% y_t=1+\phi y_{t-1}+\varepsilon_t,
% where \varepsilon_t is a series of iid Gaussian random variables with mean 0 and variance 0.5. Use the shorthand syntax to specify an AR(1) model template, then use dot notation to set the Constant and Variance properties.

Mdl = arima(1,0,0);
Mdl.Constant = 1;
Mdl.Variance = 0.5;
Mdl

% Mdl is a partially specified arima object.  You can modify  property values by using dot notation or fit the unknown coefficient \phi  to data by using estimate, but you cannot pass Mdl to any other object function.
% Copyright 2019 The MathWorks, Inc.