Last active
November 18, 2015 03:00
-
-
Save akshaybabloo/711e8abf9d3452ca20ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample_rate = 500; | |
number_of_channels = 32; | |
file_number = 1; | |
looper = 1; | |
eeg = transpose(EEG.data); | |
while looper == 1 | |
var = eeg(1:sample_rate,1:number_of_channels); | |
k = sprintf('sam%d',file_number); | |
% assignin('base',k,var); % if you wan to save it to your work space. | |
eeg(1:sample_rate,:) = []; | |
csvwrite(strcat(k,'.csv'),var); | |
file_number=file_number+1; | |
[c,d] = size(eeg); | |
if c < 10 | |
looper=0; | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment