Applications

Do I have access to all the libraries in Compose when I install the executable?

Yes, because Compose does not use separate toolboxes in its business model. Instead, all libraries are natively available as soon as the software is installed.

How do I protect the source code of my scripts?

Use the encryptfile function.

Can we create applications that our entire team can use without modifying the scripts?

Yes, because it is possible to work with Compose on the cloud using Altair One or use files in network locations. Moreover, there are various system functions to help create generic scripts based on relative paths instead of absolute ones, such as fileparts, dir and many others.

I have multiple math functions written in Compose. Can I create a custom library for these?

Yes, the section of the help Library Creation and Management is dedicated to this topic and it also contains examples.

If I have a folder with commonly used functions, can I add it by default in the search paths of Compose?

Yes. You can add the folder through the preferences:

  1. Select File > Preferences > Others.
  2. Add your desired paths, each separated with a semicolon.
  3. Save the preference.

    Your paths are automatically added to the search paths of Compose.

How many Altair Units does Compose require?

5 Altair Units.

What are best practices to improve the performance of my Compose OML script?

  • Use vectorization: for example, instead of using loops such as for and while to execute a command in each element of a matrix, use the operators such as (:) and indices to apply the same operation in various elements at once.
  • Although not mandatory, where OML loops are required, matrices and cells should be pre-allocated using functions to create them such as zeros or ones.