diff --git a/matlab/indnv.m b/matlab/indnv.m index 11cfef45f..df4b18a67 100644 --- a/matlab/indnv.m +++ b/matlab/indnv.m @@ -1,7 +1,21 @@ -% Copyright (C) 2001 Michel Juillard -% function a=indnv(x,y) +% function a=indnv(x,y) +% Finds the elements indices of one vector in an other one +% +% INPUTS +% x: column vector +% y: column vector +% +% OUTPUTS +% a: vector of elements position of x in y +% +% SPECIAL REQUIREMENTS +% none +% +% part of DYNARE, copyright Dynare Team (2001-2007) +% Gnu Public License. + a = zeros(size(x)) ; for i = 1:size(x,1)