diff --git a/doc/dynare.texi b/doc/dynare.texi
index a56dff680f2be997a101e1c5de49970036c412d2..9aec072bed26cd6e2f68c4227b78844b36736a3f 100644
--- a/doc/dynare.texi
+++ b/doc/dynare.texi
@@ -12168,7 +12168,7 @@ plot(ts2.data,'--r');           % Plot of the filtered y.
 hold off
 axis tight
 id = get(gca,'XTick');
-set(gca,'XTickLabel',strings(ts.dates(id)));
+set(gca,'XTickLabel',strings(ts1.dates(id)));
 @end example
 
 @iftex