Matlab is a programming platform designed specifically for engineers and scientists to analyze and design systems and products. The heart of MATLAB is the MATLAB language, a matrix-based language allowing the most natural expression of computational mathematics. It allows matrix manipulations; plotting of functions and data; implementation of algorithms; creation of user interfaces; interfacing with programs written in other languages, including C, C++, Java, and FORTRAN; data analysis; algorithms development; and models and applications creation.
This software is proprietary, a license is necessary in order to use it. If you want to test this payload on a real use-case, please get in touch with our team: firstname.lastname@example.org.
The test use case uses Matlab r2023b
If you are interested in another version, please send us an email at email@example.com.
Before launching the case, please ensure that the following prerequisites have been met.
- Create an account (here)
- Retrieve the authentication token (here)
- Install one of Qarnot’s SDK (Python) (Node.js) (C#) (Commande Line)
This test case simulates the flight of a 0.05 kg rocket. During the first 0.15 s the rocket is propelled up by the rocket engine with a force of 16 N. The rocket then flies up slowing down under the force of gravity. After it reaches the apex, the rocket starts to fall back down. When its down velocity reaches 20 m/s a parachute opens (assumed to open instantly) and the rocket continues to move down at a constant speed of 20 m/s until it hits the ground.
Launching the case
Here is an example of how to run a Matlab use-case on the platform. It assumes that :
- you have access to a license
- your use-case includes a .m file in your working directory (you can download the example above)
To launch the computation on Qarnot, copy this code in a Python script in your working directory. Be sure you have copied your authentication token in the script (instead of <<<MY_SECRET_TOKEN>>>), add the license informations (Your_License_IP, Your_License_Port, Your_Vendor_Port) change the name of the file in FILE_TO_RUN (instead of Your_file_To_Run.m) and execute python3 sample.py in the terminal.
At any given time, you can monitor the status of your task on the general web interface Tasq. The following figure shows a successful Matlab demo simulation on Tasq. In the red square you can have your output files created by your .m file
In our example the result is the following image, available in the matlab-out bucket :
That’s it! If you have any questions, please contact firstname.lastname@example.org and we will help you with pleasure!