diff --git a/matlab/get_companion_matrix.m b/matlab/get_companion_matrix.m index 65b5ef75a..5fea3b306 100644 --- a/matlab/get_companion_matrix.m +++ b/matlab/get_companion_matrix.m @@ -1,4 +1,4 @@ -function get_companion_matrix(auxiliary_model_name, auxiliary_model_type) +function [A0, AR, B] = get_companion_matrix(auxiliary_model_name, auxiliary_model_type) % Gets the companion VAR representation of a PAC auxiliary model. % Depending on the nature of this auxiliary model the output is @@ -39,6 +39,12 @@ if nargin<2 end end +if nargout + A0 = []; + AR = []; + B = []; +end + get_ar_ec_matrices(auxiliary_model_name, auxiliary_model_type); % Get the number of lags