Remove codepaths for unsupported Octave versions

time-shift
Sébastien Villemot 2018-05-16 14:13:22 +02:00
parent afbac2e8eb
commit 42b82087d5
4 changed files with 3 additions and 20 deletions

View File

@ -81,11 +81,7 @@ more off
% sets default format for save() command
if isoctave
if octave_ver_less_than('3.8')
default_save_options('-mat')
else
save_default_options('-mat')
end
save_default_options('-mat')
end
if nargin < 1

View File

@ -38,11 +38,7 @@ end
if isoctave
[aa,bb,qq,zz]=qz(full(a),full(b));
for j=1:p
if octave_ver_less_than('3.4.0')
d(:,:,j)=qq'*d(:,:,j)*u;
else
d(:,:,j)=qq*d(:,:,j)*u;
end
d(:,:,j)=qq*d(:,:,j)*u;
end
else
[aa,bb,qq,zz]=qz(full(a),full(b),'real'); % available in Matlab version 6.0

View File

@ -27,11 +27,6 @@ function plot_icforecast(Variables,periods,options_)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isoctave && octave_ver_less_than('3.4.0')
% The set() command on the handle returned by area() crashes in Octave 3.2
error('plot_conditional_forecast: you need Octave >= 3.4 (because of a bug in older versions)')
end
load conditional_forecasts;
forecast_periods = length(forecasts.cond.Mean.(Variables{1}));

View File

@ -34,11 +34,7 @@ warning('on', 'backtrace');
if isoctave
warning('off', 'Octave:separator-insert');
if octave_ver_less_than('4.0')
warning('off', 'Octave:matlab-incompatible');
else
warning('off', 'Octave:language-extension');
end
warning('off', 'Octave:language-extension');
warning('off', 'Octave:single-quote-string');
warning('off', 'Octave:missing-semicolon');
warning('off', 'Octave:empty-list-elements');