You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,14 @@ RocketPy is the next-generation trajectory simulation solution for High-Power Ro
82
82
</ul>
83
83
</details>
84
84
85
+
<details>
86
+
<summary>Integration with MATLAB®</summary>
87
+
<ul>
88
+
<li>Straightforward way to run RocketPy from MATLAB®</li>
89
+
<li>Convert RocketPy results to MATLAB® variables so that they can be processed by MATLAB®</li>
90
+
</ul>
91
+
</details>
92
+
85
93
<br>
86
94
87
95
## Validation
@@ -91,11 +99,11 @@ RocketPy's features have been validated in our latest [research article publishe
91
99
The table below shows a comparison between experimental data and the output from RocketPy.
92
100
Flight data and rocket parameters used in this comparison were kindly provided by [EPFL Rocket Team](https://github.com/EPFLRocketTeam) and [Notre Dame Rocket Team](https://ndrocketry.weebly.com/).
% In this Live Script, you will learn how to run RocketPy using the MATLAB®
3
+
% environment.
4
+
%
5
+
% First things first: clone/download RocketPy's repository and set it as your
6
+
% MATLAB® working directory so that you can run this live script without any issues.
7
+
%
8
+
% After that, we start by configuring our Python environment. You can do so
9
+
% by following the guidelines presented in the MATLAB® documentation: <https://www.mathworks.com/help/matlab/matlab_external/install-supported-python-implementation.html?searchHighlight=python&s_tid=srchtitle_python_4
10
+
% Configure Your System to Use Python - MATLAB & Simulink (mathworks.com)>.
11
+
%
12
+
% Once the Python environment is configured, RocketPy needs to installed using
13
+
% |pip| as outlined in RocketPy's documentation: <https://docs.rocketpy.org/en/latest/user/installation.html#quick-install-using-pip
14
+
% Installation — RocketPy documentation>.
15
+
%
16
+
% Finally, all the prerequisites are complete and you can comeback to MATLAB®!
17
+
% We just need to set the execution mode as out of process and start working.
18
+
% MATLAB® can run Python scripts and functions in a separate process. Running
19
+
% Python in a separate process enables you to:
20
+
%%
21
+
% * Use some third-party libraries in the Python code that are not compatible
22
+
% with MATLAB®.
23
+
% * Isolate the MATLAB® process from crashes in the Python code.
24
+
25
+
pyenv('ExecutionMode','OutOfProcess');
26
+
%%
27
+
% Note: if MATLAB® is not able to find Python automatically, you may have to
28
+
% run the command line above including a path to the Python exectuable installed
0 commit comments