Main Content

Start MATLAB on Amazon Web Services (AWS) Using Cloud Center

Start MATLAB

To start a cloud machine with MATLAB® installed and access it from a web browser, follow these steps:

  1. Sign in to Cloud Center at https://cloudcenter.mathworks.com.

  2. If you have never used Cloud Center before, there is a one-time setup to link your cloud account with Cloud Center. See Link Your Cloud Account to Cloud Center.

  3. To start any cloud resources, click the Cloud Resources tab.

  4. Next to MATLAB, click Create.

    Create MATLAB resource button in the Cloud Resource tab.

  5. You see a Create Cloud Resource window summarizing the configuration settings for the resource you will start. To create a MATLAB resource using these settings, click Start.

    To save your configuration settings and not start the resource, click Save.

    To modify these settings, see View and Edit Cloud Resource Configuration.

    Create cloud resource window with summary of MATLAB cloud resource.

    After you click Start it can take 5-15 minutes for the machines in AWS® to be available to use.

  6. When the resource Status shows Running, in the Actions column, click the open MATLAB button Open MATLAB button..

    In the dialog box, make a note of the user name you will need on the next screen. To copy the password to your clipboard and proceed, click Copy and Connect. Cloud Center opens a new web browser tab. If it does not, check your pop-up blockers and try again.

    MATLAB resource with running in the status column and the open MATLAB button highlighted.

  7. Sign in to the cloud resource, then on the web desktop click the MATLAB icon to start using MATLAB. For more details, see Open MATLAB on the Cloud Machine.

View and Edit Cloud Resource Configuration

The options for the cloud machine configuration in Cloud Center are the same as the following reference architectures available on GitHub®:

You can view and edit any of the settings for your cloud resource, on the Cloud Resource Configuration screen.

  1. Edit settings for MATLAB, cloud and operating system. You can specify a name and choose a cloud location. If you want to use NVIDIA® grid drivers for visualization applications, select Windows and choose the Description NVIDIA Grid Driver for G3, G4dn and G5 instance types.

    Edit cloud resource configuration of MATLAB resource in create cloud resource step.

  2. Scroll down to edit additional settings.

    Choose an instance type that suits your application for the machine.

    Tip

    For deep learning, choose a machine with GPUs such as the P3, G4dn, or G5 instances. P3 instances have GPUs with high performance for general computation. G4dn and G5 instances have GPUs with high single-precision performance for deep learning, image processing, computer vision, and automated driving simulations.

    Check the next settings, such as VPC, access method, storage and logging. The AWS CloudWatch logs for the cloud resource are stored in your AWS account.

    You can set the time to shut down with the Auto-Shutdown setting, or you can change this any time after your resource is running.

    For help on any setting, click the "i" info button.

    Edit AWS configuration of MATLAB cloud resource in create MATLAB cloud resource step.

    Scroll down to view more settings such as the remote access IP, user name and password.

    Edit Remote access configuration of MATLAB cloud resource in create MATLAB cloud resource step.

  3. To start the cloud resource, click Start. You return to the Cloud Resource tab.

    • To save your configuration settings and not start the resource, click Save.

    Cloud Resource successfully created banner in cloud resource tab.

    The next time you start a resource, Cloud Center remembers your previous choices when you click Create.

Open MATLAB on the Cloud Machine

  1. After you click Start it can take 5-15 minutes for the machines in AWS to be available to use. To check progress, in Cloud Center view the Status column and the notifications.

    Status column shows the newly created MATLAB resource starting in the Cloud Resources tab.

  2. After the Status column shows your cloud resource is Running, to access MATLAB in a web browser, under Actions, click the open MATLAB button Open MATLAB button..

    Status column shows the newly created MATLAB resource running in the Cloud Resources tab.

  3. In the Access Your Cloud Resource dialog box, note the credentials you will need to log in on the next screen.

    1. Make a note of the user name. For Windows machines, the user name is Administrator and for Linux machines, the user name is ubuntu.

    2. You can view the password, and to copy it to your clipboard and proceed, click Copy and Connect.

      Access your cloud resource dialog with the user name and password for accessing the newly created MATLAB cloud resource.

      Cloud Center opens a new tab using DCV software. In the user name box, type the user name you noted in the previous step, paste the password you copied in the password box, and click Log In.

      If you need the password again later, you can find it in the details screen for the cloud resource.

  4. You see the web desktop of the cloud machine in AWS, with the MATLAB shortcut. Double-click the MATLAB shortcut to open the installed MATLAB.

    MATLAB shortcut on the desktop on the cloud machine.

  5. When MATLAB opens, sign in with your MathWorks® account email address and password.

    MATLAB opened with box to enter MathWorks account email.

    If your cloud resource is stopped, either by you in Cloud Center or by automatically shutting down when it reaches a timeout, then click Reconnect on the DCV tab to return to Cloud Center and restart your resource.

Manage Your Cloud Resource

Return to the Cloud Center tab to manage your cloud resource while it is running, for example to stop, restart, change the time until automatic shut down, or check settings.

  • Under Actions, to power down the machine, click the stop button Stop MATLAB button..

    You are no longer charged for the instance after stopping, but can continue to incur costs for items such as storage. You can also restart the resource faster without needing to set anything up, compared to deleting the resource.

  • Under Actions, click the three dots to find other options. To open the desktop of your cloud instance in NICE DCV through MathWorks web proxy, click Open MATLAB. To open the desktop of your cloud instance in NICE DCV bypassing MathWorks web proxy, click Open MATLAB (Direct). Direct can provide local access that is not through MathWorks servers, but you must also accept a message about the SSL certificate to continue. For an alternative access method, click Download Remote Desktop File. You can also download the Nice DCV file by clicking Download Nice DCV File. To copy the resource, click Duplicate. To copy the resource configuration settings as a URL, click Copy Resource Configuration Settings. To stop all charges and remove the resource, click Delete.

    Other options under the action column, including download remote desktop file, delete and duplicate.

  • Check the time until shut down in the Status column.

  • To change the time until shut down and check more details, in the Name column, click the name of your resource, for example, MATLAB. You see the details screen for your resource.

    Details screen of the running cloud resource configuration.

  • To extend the time until your cloud resource shuts down automatically, choose a time in the drop-down menu, for example 3 hours, and click Apply. If you want to keep running until you shut down manually, select Always On in the drop-down menu. View the time until shutdown under the Running status indicator.

  • To check more settings, expand Additional Settings. You can view all the settings you configured when creating the resource, copy the user name and password for the cloud machine, and check or delete access.

    Additional settings in the details screen of the running resource configuration.

    • To copy the public IP address of the cloud resource, click the clipboard icon button next to the Public IP listed under Additional Settings. Alternatively, copy the public IP address under the IP Address column in the Cloud Resources tab.

    • Manage IP and access ports to your cloud resource while it is running. The default IP access and ports are set based on the Remote Desktop Access IP provided when the resource was created. Cloud Center automatically adds a new access port when you open MATLAB in a web browser or download a remote desktop file. To manually add new access ports, click Add New Access and complete the relevant details. To delete an IP access and port combination, click Delete Access.

  • After your resource is stopped, you can start it again from the details screen or back on the main Cloud Resources screen by clicking the start button.

Details screen after cloud resource is stopped.

Status column shows the MATLAB resource has been stopped in the Cloud Resources tab.

Related Topics