Differences between revisions 1 and 2
Revision 1 as of 2009-11-23 09:46:29
Size: 1404
Comment:
Revision 2 as of 2009-11-23 10:33:35
Size: 2558
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This page documents incompatibilities accross MATLAB versions that Dynare has to deal with. This page documents incompatibilities accross MATLAB versions. For each MATLAB release, it gives the main changes appearing in that release and that Dynare needs to handle.
Line 3: Line 3:
These incompatibilities are handled at three places: Note that all changes are not documented, please refer to the official release notes for a full list: [[http://www.mathworks.com/access/helpdesk_r13/help/base/relnotes/matlab/rn.html|for releases up to 6.5.1 (R13SP1)]], and [[http://www.mathworks.com/access/helpdesk/help/techdoc/rn/rn_intro.html|for releases since 7.0 (R14)]].

Dynare deals with these incompatibilities at three places:
Line 7: Line 9:

The source of the information contained in this page is official MATLAB release notes, [[http://www.mathworks.com/access/helpdesk_r13/help/base/relnotes/matlab/rn.html|for releases up to 6.5.1 (R13SP1)]], and [[http://www.mathworks.com/access/helpdesk/help/techdoc/rn/rn_intro.html|for releases since 7.0 (R14)]].
Line 36: Line 36:
 * New format (v7) for MAT files
 * {{{Inf}}} and {{{NaN}}} accept dimension arguments for creating matrices
 * {{{eps}}} accepts an argument for computing relative precision
 * New functions: {{{addtodate}}}, {{{genvarname}}}, {{{intmax}}}, {{{intmin}}}, {{{intwarning}}}, {{{isfloat}}}, {{{isinteger}}}, {{{isscalar}}}, {{{isstrprop}}}, {{{isvector}}}, {{{mmfileinfo}}}, {{{recycle}}}, {{{restoredefaultpath}}}, {{{strtrim}}}, {{{textscan}}}, {{{xlswrite}}}
 * Changed functions: {{{xlsread}}}, {{{dlmwrite}}}, {{{xlsinfo}}}
 * Added nested functions
 * Functions handles can be called directly without {{{feval}}}
 * On Linux and Macintosh systems, all MEX-files that can throw errors need to be recompiled
 * Shared libraries previously residing in directory $MATLAB/extern/lib/$ARCH are now in $MATLAB/bin/$ARCH
Line 46: Line 56:
 * Possibility of using dynamic field names in structures (with the {{{S.(field)}}} syntax)
 * New logical and/or operators with short-circuiting: {{{&&}}} and {{{||}}}
 * Added a second output argument to {{{ismember}}}

This page documents incompatibilities accross MATLAB versions. For each MATLAB release, it gives the main changes appearing in that release and that Dynare needs to handle.

Note that all changes are not documented, please refer to the official release notes for a full list: for releases up to 6.5.1 (R13SP1), and for releases since 7.0 (R14).

Dynare deals with these incompatibilities at three places:

  • in the configure script, via the various m4 macros for MATLAB
  • in the M-files, mainly through matlab/dynare_config.m

  • in the C++ source for MEX files, mainly through dynmex.h, dynblas.h and dynlapack.h in mex/sources

MATLAB 7.9 (R2009b)

MATLAB 7.8 (R2009a)

MATLAB 7.7 (R2008b)

MATLAB 7.6 (R2008a)

MATLAB 7.5 (R2007b)

MATLAB 7.4 (R2007a)

MATLAB 7.3 (R2006b)

MATLAB 7.2 (R2006a)

MATLAB 7.1 (R14SP3)

MATLAB 7.0.4 (R14SP2)

MATLAB 7.0.1 (R14SP1)

MATLAB 7.0 (R14)

  • New format (v7) for MAT files
  • Inf and NaN accept dimension arguments for creating matrices

  • eps accepts an argument for computing relative precision

  • New functions: addtodate, genvarname, intmax, intmin, intwarning, isfloat, isinteger, isscalar, isstrprop, isvector, mmfileinfo, recycle, restoredefaultpath, strtrim, textscan, xlswrite

  • Changed functions: xlsread, dlmwrite, xlsinfo

  • Added nested functions
  • Functions handles can be called directly without feval

  • On Linux and Macintosh systems, all MEX-files that can throw errors need to be recompiled
  • Shared libraries previously residing in directory $MATLAB/extern/lib/$ARCH are now in $MATLAB/bin/$ARCH

MATLAB 6.5.2 (R13SP2)

MATLAB 6.5.1 (R13SP1)

MATLAB 6.5 (R13)

  • First MATLAB release supported by Dynare.
  • New functions: rmdir, movefile. Changed functions: mkdir, copyfile

  • Left and right divide operators behave differently for singular matrices
  • New function: regexp

  • Possibility of using dynamic field names in structures (with the S.(field) syntax)

  • New logical and/or operators with short-circuiting: && and ||

  • Added a second output argument to ismember

DynareWiki: MatlabVersionsCompatibility (last edited 2014-03-24 15:28:09 by SébastienVillemot)