varsHighAOA.alt = (0:400:4000); % above local ground (env.z0 will be added in main)
%% XCG Discretization
vars.Nxcg = 3; % Number of wanted xcgs in order to generate N aerodynamic matrices
```
```
where you have to replace `mission_name` with the specific name of the mission required.<br/>
The variables that do not depend directly on the geometry of the rocket and that cannot be known a priori, like flight conditions, are taken from `configAutoMatProtub.m`.<br/>
***`saveVars.m`:** A helper function to save the computed aerodynamic coefficients and state variables into `.mat` files.
The computation is started by running `mainAutoMatProtub.m`
---
## Output
## Output
The output data is stored in one `.mat` file named after the engine in the rocket.
The coefficient matrix is directly saved in `../data/mission_name` and the access to each field is completely numerical, even to select the sub-matrix referred to a specific coefficient. <br/>
The output data is stored in `.mat` files named after the engine in the rocket. The coefficient matrices are saved in the mission's data directory under `common/missions/<missionName>/data/<engineName>.mat`. The data includes:
For further details about these matrices, we suggest reading the [`README.md`](https://git.skywarder.eu/afd/msa/msa-toolkit/-/tree/master/simulator/README.md) file in the `simulator` folder.
***State Variables:** Mach numbers, angles of attack, sideslip angles, altitudes, and center of gravity positions.
***Geometry Variables:** Rocket geometry parameters such as fin dimensions, nose length, and diameter.
***Aerodynamic Coefficients:** Coefficients for different flight conditions and airbrake configurations.
---
## Coefficients Matrix Dimensions
The dimensions of the coefficients matrix are as follows:
***Coefficients:** The 15 exported aerodynamic coefficients.