主要内容

compiler.runtime.download

下载 MATLAB Runtime 安装程序

说明

compiler.runtime.download 可下载与执行此命令的 MATLAB® 的版本和更新级别相匹配的 MATLAB Runtime 安装程序。如果该安装程序已下载到计算机,则系统会返回一条消息,指出 MATLAB Runtime 安装程序已存在并指定其位置。如果计算机处于离线状态,则系统会返回一条消息,其中包含该安装程序的下载 URL。

示例

示例

全部折叠

在使用 MATLAB R2022a 的 Windows® 上下载 MATLAB Runtime 安装程序。

compiler.runtime.download
Downloading MATLAB Runtime installer. It may take several minutes...

MATLAB Runtime installer has been downloaded to:
 "C:\Users\<username>\AppData\Local\MathWorks\MatlabRuntimeCache\MCRInstaller25.1\MATLAB_Runtime_R2025a_win64.zip"

如果您已下载最新版本的 MATLAB Runtime 安装程序,此命令将在使用 MATLAB R2025a 的 Windows 上提供以下结果:

compiler.runtime.download
An existing MATLAB Runtime installer was found at:
 "C:\Users\<username>\AppData\Local\MathWorks\MatlabRuntimeCache\MCRInstaller25.1\MATLAB_Runtime_R2025a_win64.zip"

如果您未连接到 Internet,此命令将显示一个 URL,您可以在 Web 浏览器中打开该 URL 来下载 MATLAB Runtime 安装程序。该 URL 对应于 MATLAB 的版本和更新级别,如 <release>/Release/<update_level> 所示。

使用没有更新的 MATLAB R2025b 时,系统将显示 MATLAB Runtime 的下载 URL。

compiler.runtime.download
Downloading MATLAB Runtime installer. It may take several minutes...

Error using compiler.runtime.download
A connection could not be established to download the Runtime Installer.
Download the runtime from:
https://ssd.mathworks.com/supportfiles/downloads/R2025b/Release/0/deployment_files/installer/complete/win64/MATLAB_Runtime_R2025b_win64.zip
and update the runtime location in Compiler Settings.

版本历史记录

在 R2018a 中推出

另请参阅

|