%-------------------------------------------------------------------------
% Data_Analysis.m
% This file is about sample codes.
% If you want to execute this sample codes, you downloaded sampleData.zip.
% Go to website below and download it.
% (https://osf.io/kprvn/?view_only=0bfb915de5bf4927baad3f92125feee3)
% 
% Each paragraph is followed by a detailed description.
% All codes can 
%-------------------------------------------------------------------------

%% Convert_sample code
% This code coverts raw file to mat file
edit 60EEG_4EOG_7EMG_converter

%% FBCSP_RLDA_sample codes (reaching, grasp and twist)
% This code is about to filter bank common spatial pattern (FBCSP) with
% regularized linear discriminant analysis (RLDA).
% Each line is about reaching, grasp and twist.
edit FBCSP_RLDA_reaching
edit FBCSP_RLDA_grasp
edit FBCSP_RLDA_twist

%% Signal figure_sample codes
% These codes show each of raw signals of electroencephalogram (EEG), electrooculography (EOG) and electromyography (EMG) figure.
edit figureEEG
edit figureEOG
edit figureEMG

%% Scalp plot_sample codes
% 
edit plotScalp_session1_SampleCode
edit plotScalp_session2_SampleCode
edit plotScalp_session3_SampleCode

%% ERSP_sample codes
% These codes show event-related spectral dynamics (ERSP) of each sessions. 
edit ERSP_session1_SampleCode
edit ERSP_session2_SampleCode
edit ERSP_session3_SampleCode
