diff --git a/matlab/utilities/general/isint.m b/matlab/utilities/general/isint.m index f6ed5a64e..01f403d5d 100644 --- a/matlab/utilities/general/isint.m +++ b/matlab/utilities/general/isint.m @@ -1,4 +1,4 @@ -function [b,c,d] = isint(a) +function [l,c,d] = isint(a) % This function tests if the input argument is an integer. % % INPUT @@ -33,7 +33,7 @@ function [b,c,d] = isint(a) % along with Dynare. If not, see . if ~isnumeric(a) - b = false; + l = false; if nargout>1 c = []; d = []; @@ -41,11 +41,9 @@ if ~isnumeric(a) return end -[m,n] = size(a); - -b = abs(fix(a)-a)<1e-15; +l = abs(fix(a)-a)<1e-15; if nargout>1 - c = find(b==1); - d = find(b==0); + c = find(l==true); + d = find(l==false); end \ No newline at end of file