Remove codepaths for unsupported Octave versions
parent
afbac2e8eb
commit
42b82087d5
|
@ -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
|
||||
end
|
||||
|
||||
if nargin < 1
|
||||
|
|
|
@ -38,12 +38,8 @@ 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
|
||||
end
|
||||
else
|
||||
[aa,bb,qq,zz]=qz(full(a),full(b),'real'); % available in Matlab version 6.0
|
||||
for j=1:p
|
||||
|
|
|
@ -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}));
|
||||
|
|
|
@ -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:single-quote-string');
|
||||
warning('off', 'Octave:missing-semicolon');
|
||||
warning('off', 'Octave:empty-list-elements');
|
||||
|
|
Loading…
Reference in New Issue