Note: This manual is a work in progress!
Overview1) Adding EPsych to the Matlab path
Once the EPsych Toolbox has been downloaded using Git or as a Zip file, Matlab needs to know where to look for the software. In the Matlab command window, type the following, replacing the path to your local copy of EPsych on your harddrive:
>> addpath('C:\The Local\Path\to\epsych'); % Add the EPsych root folder to Matlab's path
>> epsych_startup; % Adds correct paths to Matlab
It is not recommended to manually add all subdirectories within the EPsych main folder to the Matlab path because certain file types and folders should not be included.
I typically place the EPsych git repository in c:\gits\epsych
, but this is up to you.
2) Modifying the startup.m script
If a file called startup.m is located on the default path (typically something similar to 'C:\Users\YourUserName\Documents'), then this code will run every time Matlab is started. It is recommended to add the above two lines of code to a custom startup.m script. This way, EPsych will automatically check that the proper paths are set after an update.
3) Test Setup
In the Matlab command window, type the following and then hit the Enter key:
>> ep_LaunchPad
If all of the steps above were done properly, a simple GUI should appear.