Scilab eeg project

git_upload_push Debian 7.7 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) 14_12_04 # Scilab version 5.5.1 #

Silab script to complete my project: eeg_data=csvRead("baseline_raw.csv") eeg_att_med=csvRead("esense_raw.csv") ///////

[wier kol]=size(eeg_data); //loop to calculate milivolts from raw signal for i=1:1:wier eeg_data(i,2)=((eeg_data(i,2)*(1.8/4096))/2000)*1000; end ///////

subplot(221); a=gca; a.data_bounds=[0 0;15 100]; xlabel("seconds"); ylabel("attention level"); plot(eeg_att_med(:,1),eeg_att_med(:,2),'rd-');

subplot(222); a=gca; a.data_bounds=[0 0;15 100]; xlabel("seconds"); ylabel("meditation level"); plot(eeg_att_med(:,3),eeg_att_med(:,4),'kd-');

subplot(212); xlabel("seconds"); ylabel("milivolts"); plot(eeg_data(:,1),eeg_data(:,2),'b-'); disp("")

signal_mean = mean(eeg_data(:,2)); disp("signal_mean", signal_mean) disp("")

signal_stdev = stdev(eeg_data(:,2)); disp("signal_stdev",signal_stdev) disp("")

signal_variance = variance(eeg_data(:,2)); disp("signal_variance ",signal_variance) disp("")

signal_correl = correl(eeg_data(:,2),eeg_data(:,1)); disp("signal_correl (with time)",signal_correl) disp("")