www.gusucode.com > econ 案例源码程序 matlab代码 > econ/ModifyModelPropertiesExample.m

    %% Modify Model Properties
% You can also modify model properties using dot notation. For example,
% consider this AR(2) specification:
%%

% Copyright 2015 The MathWorks, Inc.

Mdl = arima('AR',{0.8,-0.2},'Variance',0.2,'Constant',0)
%%
% The created model has the default Gaussian innovation distribution.
% Change the innovation distribution to a Student's _t_ distribution with
% eight degrees of freedom. The data type for |Distribution| is a |struct|
% array.
Mdl.Distribution = struct('Name','t','DoF',8)
%%
% The variable |Mdl| is updated accordingly.