If you install MATLAB and integrate it with your modeling tool, you will be able to evaluate scripts written in MATLAB syntax. For example, you can use MATLAB as a script language to define return in calculations.

Prerequisites

  • MATLAB 2023a and later versions have been tested for compatibility with SysML v2 projects. Support for older versions is not guaranteed.
  • You must use the 64-bit version of MATLAB so it would work with the 64-bit version of modeling tools.
  • If MATLAB was integrated before installing the SysML v2 Evaluation plugin, you must reintegrate it to ensure compatibility with SysML v2 projects.
  • On Windows, the application requires admin rights to complete the integration with MATLAB. If admin rights are not granted or available, you will not be able to use MATLAB with SysML v2 projects.


To integrate a modeling tool with MATLAB


  1. In the main menu, select Tools > Integrations.
  2. In the Integrations dialog, select MATLAB and click Integrate/Remove Integration.



  3. In the open dialog, click Browse next to appropriate boxes and specify the MATLAB and Java JRE home directories if they are not specified automatically.

    If you use a Mac computer with Apple silicone, you need to specify the Java JRE home directory manually. MATLAB 2023b requires JDK8 or JDK11, and MATLAB 2024a and later versions work with JDK8, JDK11, and JDK17.




  4. Click OK.

  5. If you use Windows, click Yes to grant the application admin rights. Otherwise, go to the next step.
  6. When you get a message saying to restart the modeling tool, click OK and restart the modeling tool.