Why is MATLAB Runtime so large?

58 views (last 30 days)
The monolithic MATLAB Runtime installation size seems to get bigger and bigger from release to release. Can I have a smaller sized runtime with just the components required by my application?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Mar 2021
Edited: MathWorks Support Team on 4 Mar 2021
Around Year 2014, the MATLAB Compiler was redesigned to allow a larger portion of MATLAB's features to be compiled. With more toolboxes and function are supported for deployment, the monolithic MATLAB Runtime installation size gets bigger and bigger from release to release. 
Starting from R2016a release, to distribute your application/Compiler SDK library with a subset of MATLAB Runtime that is needed for the application/library to run, you can generate an application/library installer with deploytool GUI or "compiler.package.installer" command. With this installer, the selective MATLAB Runtime will be installed together with the target standalone application or Compiler SDK library. When you generate the installer, MATLAB Runtime can be packaged either in the installer or downloaded from web.
MATLAB Runtime can also be installed with installer downloaded from 
 or with command "compiler.runtime.download". This installer will install the monolithic runtime and there is no way to configure selective installation.
  1 Comment
Michael Sisco
Michael Sisco on 8 Feb 2022
Can you expand a little more on this? I feel like I followed the instructions, but the installer that was generated was over 850MB for my little .Net assembly. It's hard for me to believe that I am using that much of the runtime.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!