From e9f4db60df7676ecf39eb61f2aba7861573eb1bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 8 Feb 2023 10:56:32 -0500
Subject: [PATCH] No longer turn off output pagination
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The “more off” command is incompatible with MATLAB Online.

Moreover, output pagination is disabled by default on MATLAB and on
Octave (since version 4 for the latter), so in most cases that command would do
nothing.

Incidentally, this allows users to enable output pagination should they want
to.

[skip ci]

(manually cherry picked from commit 2c449233844d9ff882d2a735c9f2628a8af866a8)
---
 matlab/dynare.m | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/matlab/dynare.m b/matlab/dynare.m
index 2212f9b297..2839ae1d5e 100644
--- a/matlab/dynare.m
+++ b/matlab/dynare.m
@@ -16,7 +16,7 @@ function dynare(fname, varargin)
 % SPECIAL REQUIREMENTS
 %   none
 
-% Copyright (C) 2001-2021 Dynare Team
+% Copyright © 2001-2023 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -90,9 +90,6 @@ else
     end
 end
 
-% disable output paging (it is on by default on Octave)
-more off
-
 % sets default format for save() command
 if isoctave
     save_default_options('-mat')
-- 
GitLab