First of all, our complete codes are shown in our website: There are three sub-functions with a main function. We have use the codes written by Raymundo Cassani as references ( The above result plots is get by running the command [audioRecorded,audioIndex,eegData,accData] = osc_server_muse_record_order(how many samples you want) in Matlab command window. For 5000 samples, it needs to run about 30s. On our result plots, the data coming out of the 4 EEG channels are clearly shown in the upper plot, and the data of the 3 accelerator channels are clearly shown in the lower plot. The audioRecorded array stores all the sound data. With the data in the aduioIndex array, the audioRecorded array is synchronized to the eegData and accData arrays.


As what is shown in the figure in the above section, we observe that the FP channels have greater fluctuations than the TP channels when there are some outside stimulus. We feel this phenomenon is partially due to the fact that every tester wearing a glasses. Because the legs of the glasses can push the two electrodes near the tester’s ears (the TP9 and TP10 channels) away, it is reasonable that the signals coming out from these two channels are not as sensitive as those of the two FP channels. On the other hand, the three accelerator channels all change a lot when the tester performing a physical movement.