Matrices (multi-dimensional arrays) are supported using built-in math, but there are limitations. Since SysML/fUML standards do not support matrices, they are flattened as soon as they are linked to model elements. The workaround is to avoid linking matrices to model elements directly.
This video and sample demonstrates usage of matrices in an activity diagram. Built-in math variables are global. Once variable is created, it can be accessed in any script using built-in math. For instance, you could use this “V” matrix in a completely separate Parametric diagram constraint.
If you use integrated Matlab and select Matlab as an evaluation language you can interchange matrices with Matlab.
https://youtu.be/Fu4kk0BdF20
Sample project:
More information:
https://docs.nomagic.com/display/MSI2024x/Values
https://docs.nomagic.com/display/MSI2024x/Functions https://youtu.be/qo9JUhqCuiI?si=Khk9BWF-o3eL0pGBSpecial thank you for contribution: @PL and @MH
