2.4. Configure Matlab for Biomet.net library
Before completing this step, you must have the Biomet.net repository cloned to your local computer (section 2.2). This step is important for ensuring the pipeline scripts and tools run successfully on your local computer.
Instructions for configuring Matlab to work with Biomet.net:
Once Biomet.net is successfully cloned, open Matlab.
In “Home” tab, click “Set Path” menu option. Figure 2.1 shows what your screen should be displaying when you do this, for both Windows and Mac users:
Figure 2.1. View of the Set Path menu option, for (a) Windows and (b) Mac.
Select “Add Folder…” and navigate to
Biomet.net/matlab/Startup
. Click “Select Folder” (PC) or “Open” (Mac):Figure 2.2. View of Add Folder to Path menu option, adding the Startup directory, for (a) Windows and (b) Mac.
At this point the Matlab path should look very similar to Figure 2.3: only one folder in the path does not belong to Matlab nor the
/user/Documents/Matlab
folder, and that is the Startup folder you just added.Next, click “Save” to save these settings for the future. We recommend that no other folders are saved in the default path to avoid unintentional consequences when running the data cleaning. If the saving fails, if possible you should restart Matlab in admin mode and repeat the process (it is often a permissions issue at this point; see Troubleshooting section 8 for more information).
Figure 2.3. View of Matlab path after adding the Startup directory but before restarting Matlab, for (a) Windows and (b) Mac.
Now, you can restart Matlab. Following the restart, check the Matlab path (click “Set Path”) and it should have the Biomet.net library included, as shown in Figure 2.4. In some instances you might also see “UBC_PC_Setup” but this may not appear in all installations - this will be automatically added only when required. Once confirmed, you can close this window, taking care not to change anything further.
Figure 2.4. View of Matlab path after adding the Startup directory, and after restarting Matlab, for (a) Windows and (b) Mac.
Matlab is now ready to work with the Biomet.net library.