Skip to content
Snippets Groups Projects
Verified Commit 13908ee0 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Provisions for MATLAB R2023a

parent 647ff5cd
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ compilation steps are necessary in that case. ...@@ -14,7 +14,7 @@ compilation steps are necessary in that case.
In order to run Dynare, you need one of the following: In order to run Dynare, you need one of the following:
* MATLAB, any version ranging from 8.3 (R2014a) to 9.13 (R2022b); * MATLAB, any version ranging from 8.3 (R2014a) to 9.14 (R2023a);
* GNU Octave, any version ranging from 6.2.0 to 8.1.0, with the statistics package * GNU Octave, any version ranging from 6.2.0 to 8.1.0, with the statistics package
from `Octave-Forge`_. Note however that the Dynare installer for Windows from `Octave-Forge`_. Note however that the Dynare installer for Windows
requires a more specific version of Octave, as indicated on the download requires a more specific version of Octave, as indicated on the download
......
dnl Copyright © 2009-2022 Dynare Team dnl Copyright © 2009-2023 Dynare Team
dnl dnl
dnl This file is part of Dynare. dnl This file is part of Dynare.
dnl dnl
...@@ -44,6 +44,9 @@ fi ...@@ -44,6 +44,9 @@ fi
if test -n "$MATLAB_VERSION"; then if test -n "$MATLAB_VERSION"; then
dnl Convert a release number (Rnnnnx) into a version number (x.y) dnl Convert a release number (Rnnnnx) into a version number (x.y)
case $MATLAB_VERSION in case $MATLAB_VERSION in
*2023a | *2023A)
MATLAB_VERSION="9.14"
;;
*2022b | *2022B) *2022b | *2022B)
MATLAB_VERSION="9.13" MATLAB_VERSION="9.13"
;; ;;
......
...@@ -112,7 +112,7 @@ PKGFILES="$ROOTDIR"/macOS/pkg/"$NAME" ...@@ -112,7 +112,7 @@ PKGFILES="$ROOTDIR"/macOS/pkg/"$NAME"
mkdir -p \ mkdir -p \
"$PKGFILES"/preprocessor \ "$PKGFILES"/preprocessor \
"$PKGFILES"/mex/matlab/maci64-8.3-9.3 \ "$PKGFILES"/mex/matlab/maci64-8.3-9.3 \
"$PKGFILES"/mex/matlab/maci64-9.4-9.13 \ "$PKGFILES"/mex/matlab/maci64-9.4-9.14 \
"$PKGFILES"/doc \ "$PKGFILES"/doc \
"$PKGFILES"/scripts \ "$PKGFILES"/scripts \
"$PKGFILES"/contrib/ms-sbvar/TZcode "$PKGFILES"/contrib/ms-sbvar/TZcode
...@@ -170,7 +170,7 @@ make clean ...@@ -170,7 +170,7 @@ make clean
--with-slicot="$LIB64"/Slicot/with-underscore \ --with-slicot="$LIB64"/Slicot/with-underscore \
--with-matlab=/Applications/MATLAB_R2022b.app --with-matlab=/Applications/MATLAB_R2022b.app
make -j"$NTHREADS" make -j"$NTHREADS"
cp -L "$ROOTDIR"/mex/matlab/* "$PKGFILES"/mex/matlab/maci64-9.4-9.13 cp -L "$ROOTDIR"/mex/matlab/* "$PKGFILES"/mex/matlab/maci64-9.4-9.14
## ##
......
function mexpath = add_path_to_mex_files(dynareroot, modifypath) function mexpath = add_path_to_mex_files(dynareroot, modifypath)
% Copyright © 2015-2022 Dynare Team % Copyright © 2015-2023 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -60,7 +60,7 @@ else ...@@ -60,7 +60,7 @@ else
end end
end end
else else
tmp = [dynareroot '../mex/matlab/win64-9.4-9.13/']; tmp = [dynareroot '../mex/matlab/win64-9.4-9.14/'];
if exist(tmp, 'dir') if exist(tmp, 'dir')
mexpath = tmp; mexpath = tmp;
if modifypath if modifypath
...@@ -80,7 +80,7 @@ else ...@@ -80,7 +80,7 @@ else
end end
end end
else else
tmp = [dynareroot '../mex/matlab/maci64-9.4-9.13']; tmp = [dynareroot '../mex/matlab/maci64-9.4-9.14/'];
if exist(tmp, 'dir') if exist(tmp, 'dir')
mexpath = tmp; mexpath = tmp;
if modifypath if modifypath
......
...@@ -21,8 +21,8 @@ Note: Dynare comes with an automated uninstaller, which you can run from the ...@@ -21,8 +21,8 @@ Note: Dynare comes with an automated uninstaller, which you can run from the
Using Dynare with MATLAB® Using Dynare with MATLAB®
───────────────────────── ─────────────────────────
Dynare works on top of MATLAB®, any version ranging from 8.3 (R2014a) to 9.13 Dynare works on top of MATLAB®, any version ranging from 8.3 (R2014a) to 9.14
(R2022b). Only 64-bit versions are supported. (R2023a). Only 64-bit versions are supported.
To use Dynare, you just have to add the ‘matlab’ subdirectory of your Dynare To use Dynare, you just have to add the ‘matlab’ subdirectory of your Dynare
installation to MATLAB® path. You have two options for doing that: installation to MATLAB® path. You have two options for doing that:
......
...@@ -129,8 +129,8 @@ build_windows_matlab_mex_64_b () ...@@ -129,8 +129,8 @@ build_windows_matlab_mex_64_b ()
PACKAGE_STRING="dynare $VERSION" PACKAGE_STRING="dynare $VERSION"
make -j"$NTHREADS" all make -j"$NTHREADS" all
x86_64-w64-mingw32-strip -- **/*.mexw64 x86_64-w64-mingw32-strip -- **/*.mexw64
mkdir -p "$ROOT_DIRECTORY"/../mex/matlab/win64-9.4-9.13 mkdir -p "$ROOT_DIRECTORY"/../mex/matlab/win64-9.4-9.14
mv -- **/*.mexw64 "$ROOT_DIRECTORY"/../mex/matlab/win64-9.4-9.13 mv -- **/*.mexw64 "$ROOT_DIRECTORY"/../mex/matlab/win64-9.4-9.14
} }
# Create Windows DLL binaries for Octave/MinGW (64bit) # Create Windows DLL binaries for Octave/MinGW (64bit)
......
...@@ -95,9 +95,9 @@ Section "MEX files for MATLAB 64-bit, version 8.3 to 9.3 (R2014a to R2017b)" ...@@ -95,9 +95,9 @@ Section "MEX files for MATLAB 64-bit, version 8.3 to 9.3 (R2014a to R2017b)"
File ..\mex\matlab\win64-8.3-9.3\*.mexw64 File ..\mex\matlab\win64-8.3-9.3\*.mexw64
SectionEnd SectionEnd
Section "MEX files for MATLAB 64-bit, version 9.4 to 9.13 (R2018a to R2022b)" Section "MEX files for MATLAB 64-bit, version 9.4 to 9.14 (R2018a to R2023a)"
SetOutPath $INSTDIR\mex\matlab\win64-9.4-9.13 SetOutPath $INSTDIR\mex\matlab\win64-9.4-9.14
File ..\mex\matlab\win64-9.4-9.13\*.mexw64 File ..\mex\matlab\win64-9.4-9.14\*.mexw64
SectionEnd SectionEnd
Section "MinGW compiler for MATLAB 64-bit" Section "MinGW compiler for MATLAB 64-bit"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment