Main Content

Install Support Package

Add-On Explorer

  1. On the MATLAB® Home tab, in the Environment section, click Add-Ons.

  2. In the Add-On Explorer, search for the Large-Scale Cloud Simulation for Simulink®.

  3. Select the support package and click Install.

Currently, the Large-Scale Cloud Simulation for Simulink™ support package is compatible with the Linux platform of the MATLAB desktop. For other platforms, you can use MATLAB containers.

Use the Large-Scale Cloud Simulation For Simulink Support Package in Container

You can use Large-Scale Cloud Simulation for Simulink support package on Windows® in a Docker® container, and using the container to upload and run models.

Use containers to create software environments that you can use exactly where you need them, whether that’s desktop, server, or cloud environments. Because you install only the software libraries and packages you need for your applications, containers are lightweight and provide a reproducible and reliable way of sharing applications without worrying about configuring installations each time. You can dockerize MATLAB to integrate it with a continuous integration and continuous delivery (CI/CD) pipeline that is completely containerized.

Containers also allow you to take advantage of cloud computing resources. Cloud platforms have integrated container management workflows. Containers are often the easiest way to get software on your cloud of choice.

To learn more about running MATLAB in containers, see the video Running MATLAB in Docker Containers. For more information on licensing MATLAB in containers, see License Requirements for MATLAB on Cloud Platforms.

MATLAB Container Image on Docker Hub:

Quick Start Guide for MATLAB Container

This section shows how to run the MATLAB container and launch an interactive MATLAB session either in browser mode or using a VNC client. You can use this MATLAB to run the Large-Scale Cloud Simulation support package. For a complete list of commands to start the MATLAB container, including how to use MATLAB in batch mode, see MATLAB Container Image on Docker Hub.

Pull Container Image.  To download the MATLAB container image onto the host machine, run this command in the command line. You must replace the tag r20XYz with the specific MATLAB release name, for example, r2025a. Downloading and extracting the container image can take some time.

docker pull mathworks/matlab:r20XYz

Run Container in Browser Mode.  Run the MATLAB container using this command:

docker run -it --rm \
  -p 8888:8888 \
  -v ./models:/models \  # <--- Added volume mount
  --shm-size=512M \
  mathworks/matlab:r20XYz \
  -browser

  • -it runs the container in interactive mode.

  • --rm deletes the container when it is closed.

  • -p 8888:8888 exposes port 8888 for the web browser connection.

  • --shm-size=512M sets the size of the shared memory to 512 MB, which is required for MATLAB to run correctly.

  • :r20XYz specifies release version R20XYz of the MATLAB container.

  • -browser specifies the option for interacting with MATLAB through a web browser.

  • -v mounts volume to Simulink model files and folders on the containers.

Running the command prints a URL to your terminal. To access MATLAB, enter the URL into a web browser. If prompted to do so, enter credentials for a MathWorks® account associated with a MATLAB license.

Run Container in VNC Mode.  You can also run the MATLAB container in VNC mode. Doing so allows you to install toolboxes or update MATLAB. For more details, see Install Updates, Toolboxes, Support Packages, and Add-Ons in Containers.

Run the MATLAB container in VNC mode by entering this command:

docker run --init -it --rm -p 5901:5901 -p 6080:6080 --shm-size=512M mathworks/matlab:r20XYz -vnc

  • -p 5901:5901 exposes port 5901 for the VNC connection.

  • -p 6080:6080 exposes port 6080 for the web browser connection.

  • -vnc specifies the option to interact with MATLAB through a VNC client.

To connect to the desktop where you can open MATLAB:

  • Use a VNC client to connect to display 1 of the Docker host machine (localhost:1).

  • If you do not have a VNC client, point a browser to port 6080 of the Docker host machine running this container (http://localhost:6080).

If your container is not running on your local machine, replace localhost with the fully qualified domain name (FQDN) of the computer on which the container is running.

The default VNC password is matlab.

For a full list of options and environment variables that you can use to start the container, run the container with the -help flag:

docker run -it --rm mathworks/matlab:r20XYz -help

For more information about configuring a MathWorks container image using environment variables, see Configure Containers.

See Also

| | |

Related Topics

Go to top of page