% alternative way of reading in the data, maybe more efficient than the
% previous
clear all; close all

cfg = [];
% cfg.dataset = 's007E_1secData.vhdr';
cfg.dataset = 's007E.vhdr';
% cfg.dataset = 's007E_EditChannels.vhdr';

data_eeg = preprocessing(cfg);

subplot(2,1,1)
secInt = 500; % 1 second worth of data in datapoints

plot(data_eeg.trial{1}(1,1:secInt))
title('brain vision recorder data')
subplot(2,1,2)

cfg.dataset = 's007E_1secData.vhdr';
PlotDataTest = preprocessing(cfg);

plot(PlotDataTest.trial{1}(1,1:secInt))
title('brain vision analyzer EXPORTED data')

