Commit 121aa503 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Bug fix. Input must be numeric in the first place.

parent 0419aa00
...@@ -32,7 +32,17 @@ function [b,c,d] = isint(a) ...@@ -32,7 +32,17 @@ function [b,c,d] = isint(a)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~isnumeric(a)
b = 0;
if nargout>1
c = [];
d = [];
end
return
end
[m,n] = size(a); [m,n] = size(a);
b = abs(fix(a)-a)<1e-15; b = abs(fix(a)-a)<1e-15;
if nargout>1 if nargout>1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment