%% Adjust Property of Existing Model
% This example shows how to exclude the first lag from the AR polynomial of a VAR(2) model.
% Create a VAR(2) model template that represents three response variables. Use the shorthand syntax.

numseries = 3;
p = 2;
Mdl = varm(numseries,p)

% The AR property of Mdl stores the AR polynomial coefficient matrices in a cell array. The first cell contains the lag 1 coefficient matrix,  and the second cell contains the lag 2 coefficient matrix.
% Set the lag 1 AR coefficient to a matrix of zeros by using dot notation. Display the updated model.

Mdl.AR{1} = zeros(numseries);
Mdl

% The lag 1 coefficient is removed from the AR polynomial of the model.
% Copyright 2019 The MathWorks, Inc.