diff --git a/matlab/discretionary_policy_1.m b/matlab/discretionary_policy_1.m
index 0837067b2f9037405d22d467504fa7c881a87fb6..8f8bf6b8a290b60bb34f6e63bb1ea55faaa1b650 100644
--- a/matlab/discretionary_policy_1.m
+++ b/matlab/discretionary_policy_1.m
@@ -98,8 +98,10 @@ instr_nbr=endo_nbr-eq_nbr;
 if instr_nbr==0
     error('discretionary_policy:: There are no available instruments, because the model has as many equations as variables.')
 end
-if size(Instruments,1)~= instr_nbr
-    error('discretionary_policy:: There are more declared instruments than omitted equations.')
+if size(Instruments,1)< instr_nbr
+    error('discretionary_policy:: There are fewer declared instruments than omitted equations.')
+elseif size(Instruments,1)> instr_nbr
+    error('discretionary_policy:: There are more declared instruments than omitted equations.')    
 end
 
 instr_id=nan(instr_nbr,1);