%% MA Model with Known Parameter Values
% This example shows how to specify an MA(q) model with known parameter values. You can use such a fully specified model as an input to simulate or forecast.
% Specify the MA(4) model
% {y_t} = 0.1 + {\varepsilon _t} + 0.7{\varepsilon _{t - 1}} + 0.2{\varepsilon _{t - 4}},
% where the innovation distribution is Gaussian with constant variance 0.15.

Mdl = arima('Constant',0.1,'MA',{0.7,0.2},...
    'MALags',[1,4],'Variance',0.15)

% All parameter values are specified, that is, no object property is NaN-valued.
% Copyright 2015 The MathWorks, Inc.