# EEGLAB and Octave 安裝指南 for Xander
## Step 1 : 安裝 GNU Octave
GNU Octave is an competitive alternate of MATLAB, for it is completely open-source, and support .m file(matlab function)
Download Link:
https://octave.org/download
Choose the version that matched your OS, in my case, MS Windows

This is its interface
## Step 2 : 安裝EEGLAB
EEGlab is the toolbox that we commonly used for EEG data analysis
There are three ways to fetch it:
1. Download EEGLab Version for MATLAB:
This one is mainly for MATLAB user.
Such is the most portable and scalable way to take advantage of it, but you would need MATLAB License Key for academy.
2. Download EEGLab Compiled version:
Personally I would recommend this way, for it doesn't require Matlab to run, the download link is here: https://sccn.ucsd.edu/eeglab/downloadtoolbox.php
Remember to choose the download link under "Download a compiled version of EEGLAB" Subtitle, the following is the installation step, if you would need a graphic guideline.
https://eeglab.org/others/Compiled_EEGLAB.html
After installation, maybe you would want to execute the EEGlab in terminal. In this case, add the execution to the PATH would be a great approach, here is the tips:
1. Find the EEGLAB directory under Program Files, like this:

2. the Windows batch file (eeglab_run_this_one_on_windows) is the target execute file for us, you can try to execute it and see if the EEGLab is successfully activated
3. ADD the execute file to the PATH environment variable:

Right click and select the "content(R)" option on your computer

Select the "advanced system setting" option in this interface

Select "environment variables" option

Find the Path variable in the system variable and click on the edit button

Lastly, copy and paste the path to the execute file in step 1, to add it to the PATH, then save the change

After all, you can activate the eeglab by simply type eeglab in both cmd and powershell, and see the prompt window
3. Download the development version of EEGlab, and open it in the GNU Octave.
The development version of EEGlab plugin could be find in its github page: https://github.com/sccn/eeglab
click on the release tag to jump to the download page

Simply download, unzip it, and add the path to your GNU Octave (ask me if you need to install EEGLab in this way, for Octave version would confront some problem when trying to install extensive plugins for EEGlab)