How to Run Simulations¶
After downloading this repository, you can follow the follow steps to perform the stimulations. The main codes are based on MATLAB and have been verified in MATLAB R2019a. You can download all source codes from this repository.
Download the Benchmark Dataset and put all 35 subjects’ data in the data folder.
You can directly download data from the webpage of Benchmark Dataset.
You also can use
DownloadData.shto download data automatically. For linux, you can directly run this script. For windows, you can use Cygwin to run this script. Please note that this script requires wget and 7z. You may refer the following commonds to run this script:cd <this_repository_path> sh ./DownloadData.sh
The following matlab toolboxes are required:
v2.1 MATLAB version of Toolbox for Adaptive Fourier Decomposition: The proposed stimulus-stimulus method requires this toolbox. If the version is lower than v2.1, the MAFD is not supported. So the version MUST be higher than or equal to v2.1.
To plot results, the following toolboxes are required. If you do not need to plot results, the following toolboxes are not needed.
In MATLAB, run
Main.min the path of this repository. If the data and results are stored in other dictionary, you can changedata_dirandfigdirinMain.m.
Note
The entire simulations may take a very long time and large RAM spaces. So you may need to run it step by step.