Commit c121d7a4 authored by sebastien's avatar sebastien
Browse files

writedata.m: fail if using Octave or MATLAB 6.5, which don't have xlswrite

git-svn-id: ac1d8469-bf42-47a9-8791-bf33cf982152
parent edb717c1
......@@ -28,6 +28,12 @@ function writedata(fname)
% along with Dynare. If not, see <>.
global M_ oo_
% xlswrite doesn't exist on Octave, and appeared in MATLAB 7.0
if exist('OCTAVE_VERSION') || matlab_ver_less_than('7.0')
error('Function not supported on your version of MATLAB or Octave')
S=[fname '_endo.xls'];
......@@ -44,4 +50,3 @@ function writedata(fname)
xlswrite([fname '_exo'], S','exogenous', 'B1');
xlswrite([fname '_exo'], S1, 'exogenous', 'A2');
xlswrite([fname '_exo'], oo_.exo_simul,'exogenous', 'B2');
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment