dr1 error

When I run my code, I get the following error message:
??? Subscript indices must either be real positive integers or logicals.
Error in ==> dr1 at 139
b = jacobia_(:,k0);
The vector, k0, contains a number of zeros. I've probably not set up the model correctly in my mod file. What should I look for?
??? Subscript indices must either be real positive integers or logicals.
Error in ==> dr1 at 139
b = jacobia_(:,k0);
The vector, k0, contains a number of zeros. I've probably not set up the model correctly in my mod file. What should I look for?