Remove codepaths for unsupported Octave versions
parent
afbac2e8eb
commit
42b82087d5
|
@ -81,11 +81,7 @@ more off
|
||||||
|
|
||||||
% sets default format for save() command
|
% sets default format for save() command
|
||||||
if isoctave
|
if isoctave
|
||||||
if octave_ver_less_than('3.8')
|
save_default_options('-mat')
|
||||||
default_save_options('-mat')
|
|
||||||
else
|
|
||||||
save_default_options('-mat')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if nargin < 1
|
if nargin < 1
|
||||||
|
|
|
@ -38,11 +38,7 @@ end
|
||||||
if isoctave
|
if isoctave
|
||||||
[aa,bb,qq,zz]=qz(full(a),full(b));
|
[aa,bb,qq,zz]=qz(full(a),full(b));
|
||||||
for j=1:p
|
for j=1:p
|
||||||
if octave_ver_less_than('3.4.0')
|
d(:,:,j)=qq*d(:,:,j)*u;
|
||||||
d(:,:,j)=qq'*d(:,:,j)*u;
|
|
||||||
else
|
|
||||||
d(:,:,j)=qq*d(:,:,j)*u;
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
[aa,bb,qq,zz]=qz(full(a),full(b),'real'); % available in Matlab version 6.0
|
[aa,bb,qq,zz]=qz(full(a),full(b),'real'); % available in Matlab version 6.0
|
||||||
|
|
|
@ -27,11 +27,6 @@ function plot_icforecast(Variables,periods,options_)
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% 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;
|
load conditional_forecasts;
|
||||||
|
|
||||||
forecast_periods = length(forecasts.cond.Mean.(Variables{1}));
|
forecast_periods = length(forecasts.cond.Mean.(Variables{1}));
|
||||||
|
|
|
@ -34,11 +34,7 @@ warning('on', 'backtrace');
|
||||||
|
|
||||||
if isoctave
|
if isoctave
|
||||||
warning('off', 'Octave:separator-insert');
|
warning('off', 'Octave:separator-insert');
|
||||||
if octave_ver_less_than('4.0')
|
warning('off', 'Octave:language-extension');
|
||||||
warning('off', 'Octave:matlab-incompatible');
|
|
||||||
else
|
|
||||||
warning('off', 'Octave:language-extension');
|
|
||||||
end
|
|
||||||
warning('off', 'Octave:single-quote-string');
|
warning('off', 'Octave:single-quote-string');
|
||||||
warning('off', 'Octave:missing-semicolon');
|
warning('off', 'Octave:missing-semicolon');
|
||||||
warning('off', 'Octave:empty-list-elements');
|
warning('off', 'Octave:empty-list-elements');
|
||||||
|
|
Loading…
Reference in New Issue