.. _setting_the_matlab_path: Setting the MATLAB Path -------------------------- To reset the MATLAB path and add the OpenECU blockset, follow these steps: 1. (Optional) Restore the default MATLAB path by running ``restoredefaultpath`` in the MATLAB command line. Usually, you can skip this step unless your MATLAB path is corrupt. 2. Change the MATLAB working directory to the OpenECU directory. For example, ``C:\openecu\platform\2_2_0_r2013-2_x86-32\openecu``. 3. Execute ``oe_switch_version``. This will display a dialog window listing all installed versions of OpenECU (see image below). 4. Select the OpenECU version you want to use. 5. Switch the MATLAB working directory to the folder containing the Simulink model you're working on. Example Commands at Matlab Prompt ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: matlab >> restoredefaultpath % optional - restore MATLAB default path >> cd('C:\openecu\platform\2_2_0_r2013-2_x86-32\openecu') % switch to the OpenECU directory >> oe_switch_version % run script to set the path for OpenECU >> path % check if the path was updated OpenECU Switch Version ^^^^^^^^^^^^^^^^^^^^^^^ .. image:: setting_the_matlab_path_img1.png