configure server to use matlab runtime
if you did not configure the matlab® web app server™ to use a version of matlab runtime during the setup process, you can do so using the command. however, before configuring the server to use a version of matlab runtime, verify that you have one installed.
note
matlab runtime starting from r2019b up until the most recent release is supported. you can use multiple versions of the matlab runtime with the server, but you cannot use a version that is newer than the version of the server you are using.
install matlab runtime
download the matlab runtime installer from the mathworks® website or the matlab desktop.
option steps mathworks website select the appropriate platform and release-specific installer from:
matlab desktop at the matlab command prompt, type:
(matlab compiler)
install matlab runtime using the installer. for installation instructions, see install and configure matlab runtime (matlab compiler).
configure the server
to configure the server to use a version of matlab runtime:
navigate to the command-line scripts folder.
operating system default location of command-line scripts windows® (administrator)
c:\program files\matlab\matlab web app server\r2023a\script
linux® (sudo)
/usr/local/matlab/matlab_web_app_server/r2023a/script
macos (sudo)
/applications/matlab/matlab_web_app_server/r2023a/script
execute the command with the
add
option and a path to the matlab runtime installation.webapps-runtime add