MATLAB Compiler

MATLAB Runtime

无需安装 MATLAB 即可运行已编译的 MATLAB 应用或组件。

MATLAB Runtime 是一组独立的共享库,支持执行已编译的 MATLAB、Simulink 应用或组件。;MATLABMATLAB CompilerSimulink Compiler 和 MATLAB Runtime 一起使用时,您可以快速、安全地创建和分发数值应用、模拟或软件组件。

要下载并安装 MATLAB Runtime:

  1. .单击下表中与您正在使用的应用或组件相对应的版本和平台。MATLAB Runtime 的版本与 MATLAB 的版本相关。

    注意:您可以在应用或组件附带的 readme.txt 文件中找到此信息。

  2. .将 MATLAB Runtime 安装程序文件保存在您计划运行应用程序或组件的计算机上。

  3. 双击安装程序并按照安装向导中的说明进行操作。

查看 MATLAB Runtime 安装程序文档了解更多信息。

版本(MATLAB Runtime 版本号) Windows Linux Mac
R2026a (26.1) 64 位 64 位 arm64
R2025b (25.2) 64 位 64 位 Intel 64 位 / arm64
R2025a (25.1) 64 位 64 位 Intel 64 位 / arm64
R2024b (24.2) 64 位 64 位 Intel 64 位 / arm64
R2024a (24.1) 64 位 64 位 Intel 64 位 / arm64
R2023b (23.2) 64 位 64 位 Intel 64 位 / arm64
R2023a (9.14) 64 位 64 位 Intel 64 位
R2022b (9.13) 64 位 64 位 Intel 64 位
R2022a (9.12) 64 位 64 位 Intel 64 位
R2021b (9.11) 64 位 64 位 Intel 64 位
R2021a (9.10) 64 位 64 位 Intel 64 位
R2020b (9.9) 64 位 64 位 Intel 64 位
R2020a (9.8) 64 位 64 位 Intel 64 位
R2019b (9.7)
64 位 64 位 Intel 64 位
R2019a (9.6)
64 位 64 位 Intel 64 位
R2018b (9.5)
64 位
64 位
Intel 64 位
R2018a (9.4)
64 位
64 位
Intel 64 位
R2017b (9.3) 64 位 64 位 Intel 64 位

安装 R2016a-R2017a 版本的 MATLAB Runtime 后应用更新

MATLAB Runtime 的 R2016a、R2016b 和 R2017a 版本提供了重要的安全修复程序。安装其中一个版本的 MATLAB Runtime 后,您应该通过单击下面相应的更新链接来应用最新更新。请注意,这仅适用于您的应用程序使用了用 MATLAB App 设计工具编写的 MATLAB 应用(.mlapp 文件)的情况。有关详细信息,请参阅 Bug 报告。 https://www.mathworks.com/support/bugreports/1830810

R2017a (9.2)
64 位   |   更新 64 位   |   更新 Intel 64 位   |   更新
R2016b (9.1)
64 位   |   更新 64 位   |   更新 Intel 64 位   |   更新
R2016a (9.0.1) 1, 2 64 位   |   更新 64 位   |   更新 Intel 64 位   |   更新
R2015b (9.0) 1, 2, 3 32 位 / 64 位 64 位 Intel 64 位
R2015aSP1 (8.5.1) 1 32 位 / 64 位 64 位 Intel 64 位
R2015a (8.5) 1 32 位 / 64 位 64 位 Intel 64 位
R2014b (8.4) 1 32 位 / 64 位 64 位 Intel 64 位
R2014a (8.3) 1 32 位 / 64 位 64 位 Intel 64 位
R2013b (8.2) 32 位 / 64 位 64 位 Intel 64 位
R2013a (8.1) 32 位 / 64 位 64 位 Intel 64 位
R2012b (8.0) 32 位 / 64 位 64 位 Intel 64 位
R2012a (7.17) 32 位 / 64 位 32 位 / 64 位 Intel 64 位
R2011b 及更早版本 4

打开 MATLAB 并运行命令 mcrinstaller 来找到 MATLAB Runtime,以便与已编译的组件一起重新分发。

说明

  1. R2014a-2016a 不支持 macOS Sierra 10.12。如果您选择在不受支持的 macOS 版本上运行任何版本的 MATLAB Runtime ,则可能需要安装补丁程序来修复不兼容问题。了解详情以确定这种不兼容性是否对您有影响。MathWorks 强烈建议您不要在 macOS Sierra 10.12 上运行任何早于 R2014a 的 MATLAB Runtime 版本。
  2. MATLAB Runtime 9.0.1 适用于 R2016a,旨在与 MATLAB 9.0(也就是 R2016a)配合使用。
  3. MATLAB Runtime 9.0 适用于 R2015b,旨在与 MATLAB 8.6(也就是 R2015b)配合使用。
  4. MATLAB Runtime 的在线版本仅适用于 R2012a 之后的版本。MATLAB Runtime 的旧版本附带 MATLAB Compiler。如果您没有 MATLAB,请向创建部署包的 MATLAB Compiler 用户索取运行时。

MATLAB Runtime FAQs

MATLAB Runtime is a standalone set of shared libraries that enables the execution of compiled MATLAB applications, Simulink applications, or libraries on computers without an installed version of MATLAB.

Yes, MATLAB Runtime is freely available and can be downloaded directly from the MathWorks MATLAB Runtime page without a MATLAB license.

Standalone applications, Standalone Docker container applications, Microsoft Excel add-ins, MATLAB MapReduce Applications, MATLAB Web Apps, C/C++ libraries, .NET libraries / COM components, JAVA JARs, Python Packages, Microservice Docker containers, MATLAB Production Server archives

You must download the version that matches the MATLAB release used to compile your application. You can find this information in the readme.txt file that accompanies the application or component.

Download the installer for your release and platform from the MathWorks MATLAB Runtime page, save it to the target computer, then double-click the installer and follow the instructions in the installation wizard.

Only if the applications/libraries are compiled on different releases. For example, if you have a R2025a compiled standalone application and you install a second R2026a developed standalone application then you would need to download the R2026a MATLAB Runtime. If the applications are compiled on the same release they can share the same MATLAB Runtime.

Yes, MathWorks provides MATLAB Runtime installers for Windows (64-bit), Linux (64-bit), and Mac (Intel 64-bit and arm64, depending on the release).

The default option for compiled applications is to “Fetch MATLAB Runtime from mathworks.com during application installation.” This happens automatically behind the scenes during installation, so the user does not need to manually download MATLAB Runtime. The author of the compiled application/library can also choose to “Include MATLAB Runtime in application installer for offline installation” which is especially useful in air gapped environments. The user only must manually download MATLAB Runtime from this page if the author of the application/library explicitly chooses the option “Do not include MATLAB Runtime in application installer.”

Yes, if “Fetch MATLAB Runtime from mathworks.com during application installation” or “Include MATLAB Runtime in application installer for offline installation” is selected the installer will fetch only the specific components and toolboxes required to run the application. This typically results in a smaller MATLAB Runtime footprint. MATLAB Runtime downloaded from this page contains all the components and toolboxes.

No, MATLAB Runtime is designed specifically to run compiled MATLAB applications on systems that do not have MATLAB installed.

No, if MATLAB Runtime resides persistently on the disk of the CI Runner, you only need to recompile the artifact. MATLAB Runtime only needs to be downloaded and installed if you change releases or platforms.

Yes, important security fixes are available for the R2016a, R2016b, and R2017a releases. If your application uses MATLAB App Designer files (.mlapp), MathWorks recommends applying the latest update after installing the runtime for those releases.

Online downloads are only available for releases after R2012a. For R2011b and earlier, open MATLAB and run the command mcrinstaller to locate the runtime for redistribution, or request it from the person who created the deployed package.

An AI agent or harness connects directly to an installed MATLAB program through the MCP Server to execute code and does not need to download MATLAB Runtime unless it is testing a compiled application for verification or equivalency.