diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m
index b684fa1db16b3fd29064da99ecf8c302e2a081b0..89629275f4e7691bc998c6c9705d854ccea6bee6 100644
--- a/matlab/initial_estimation_checks.m
+++ b/matlab/initial_estimation_checks.m
@@ -72,7 +72,7 @@ if DynareOptions.order>1
         error('initial_estimation_checks:: the particle filter with order>2 does not support pruning')
     end
     if DynareOptions.particle.pruning~=DynareOptions.pruning
-        warning('initial_estimation_checks:: the pruning settings differ between the particle filter and the one used for IRFs/simulations. Make sure this is intended.\n')
+        warning('initial_estimation_checks:: the pruning settings differ between the particle filter and the one used for IRFs/simulations. Make sure this is intended.')
     end
 end