Seed: fix bug under Octave and MATLAB < 7.7

time-shift
Sébastien Villemot 2010-11-29 11:23:59 +01:00
parent 1fc8bbd6d3
commit 116bf69fbf
1 changed files with 1 additions and 4 deletions

View File

@ -24,10 +24,7 @@ if ~nargin
error('set_dynare_seed:: I need at least one input argument!')
end
matlab_random_streams = 1;
if exist('OCTAVE_VERSION') || matlab_ver_less_than('7.7')
matlab_random_streams = 1;
end
matlab_random_streams = ~(exist('OCTAVE_VERSION') || matlab_ver_less_than('7.7'));
if matlab_random_streams% Use new matlab interface.
if nargin==1